-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
854fd81
commit b8fb804
Showing
2 changed files
with
67 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import typing as t | ||
|
||
from mimesis import providers | ||
from mimesis.locales import Locale | ||
from mimesis.providers.base import BaseProvider | ||
from mimesis.types import Seed | ||
|
||
__all__ = ["Generic"] | ||
|
||
class Generic(BaseProvider): | ||
locale: Locale | ||
# Locale-dependent providers | ||
person: providers.Person | ||
text: providers.Text | ||
address: providers.Address | ||
finance: providers.Finance | ||
datetime: providers.Datetime | ||
food: providers.Food | ||
|
||
# Locale-independent providers | ||
cryptography: providers.Cryptographic | ||
binaryfile: providers.BinaryFile | ||
file: providers.File | ||
code: providers.Code | ||
path: providers.Path | ||
choice: providers.Choice | ||
numeric: providers.Numeric | ||
payment: providers.Payment | ||
hardware: providers.Hardware | ||
development: providers.Development | ||
internet: providers.Internet | ||
science: providers.Science | ||
transport: providers.Transport | ||
|
||
def __init__(self, locale: Locale = ..., seed: Seed = ...) -> None: ... | ||
|
||
class Meta: | ||
name: t.Final[str] | ||
def __getattr__(self, attrname: str) -> t.Any: ... | ||
def __dir__(self) -> list[str]: ... | ||
def reseed(self, seed: Seed = ...) -> None: ... | ||
def add_provider(self, cls: t.Type[BaseProvider], **kwargs: t.Any) -> None: ... | ||
def add_providers(self, *providers: t.Type[BaseProvider]) -> None: ... | ||
def __iadd__(self, other: t.Type[BaseProvider]) -> Generic: ... |