CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-mimesis

Mimesis is a robust fake data generator for Python that produces realistic fake data across 35 different locales with high performance and multilingual support.

Pending
Overview
Eval results
Files

financial-data.mddocs/

Financial and Business Data

Generate financial data including currencies, prices, company information, stock data, and banking details with proper formatting for business applications.

Capabilities

Company and Business Data

class Finance(BaseDataProvider):
    def company(self) -> str:
        """Generate company name."""
    
    def company_type(self, abbr: bool = False) -> str:
        """Generate company type (Corp, LLC, etc.)."""
    
    def bank(self) -> str:
        """Generate bank name."""

Currency and Pricing

class Finance(BaseDataProvider):
    def currency_iso_code(self, allow_random: bool = False) -> str:
        """Generate currency code like 'USD', 'EUR'."""
    
    def currency_symbol(self) -> str:
        """Generate currency symbol like '$', '€'."""
    
    def cryptocurrency_iso_code(self) -> str:
        """Generate cryptocurrency code like 'BTC', 'ETH'."""
    
    def cryptocurrency_symbol(self) -> str:
        """Generate cryptocurrency symbol."""
    
    def price(self, minimum: float = 500, maximum: float = 1500) -> float:
        """Generate price within range."""
    
    def price_in_btc(self, minimum: float = 0, maximum: float = 2) -> float:
        """Generate price in Bitcoin."""

Stock Market Data

class Finance(BaseDataProvider):
    def stock_ticker(self) -> str:
        """Generate stock ticker symbol like 'AAPL'."""
    
    def stock_name(self) -> str:
        """Generate stock/company name."""
    
    def stock_exchange(self) -> str:
        """Generate stock exchange name."""

Usage Examples

from mimesis import Finance

finance = Finance()

# Business data
company_profile = {
    'name': finance.company(),
    'type': finance.company_type(),
    'bank': finance.bank()
}

# Financial data
financial_data = {
    'currency': finance.currency_iso_code(),
    'price': finance.price(minimum=100, maximum=5000),
    'stock_ticker': finance.stock_ticker(),
    'exchange': finance.stock_exchange()
}

Install with Tessl CLI

npx tessl i tessl/pypi-mimesis

docs

configuration.md

core-providers.md

datetime.md

financial-data.md

index.md

internet-data.md

location-data.md

personal-data.md

schema.md

specialized-providers.md

text-content.md

tile.json