Faker: providers M–P
This reference covers 151 facade names in the M-P range. The whole catalog contains 675 typed methods (694 signatures including overloads) and 7 backend helpers accessible at runtime, organized alphabetically. Availability was checked against the installed backend’s 110 locales; some methods only exist for specific locales.
Preparing examples
Section titled “Preparing examples”Examples generate values in memory. They neither create tables nor insert records. Define this factory once, then use snippets inside its definition(), a seeder or a service/controller as shown in Faker and simulated data.
from orionis.orm import Integer, Model, Stringfrom orionis.orm.factories import Factory
class SampleRecord(Model): id = Integer().primary().autoIncrement() value = String(180) timestamps = False fillable = ["value"]
class SampleFactory(Factory[SampleRecord]): model = SampleRecord
def definition(self): return {"value": self.fake.word()}Each entry selects a verified compatible locale, presents the typed contract and the backend’s actual defaults. ... in a typed signature means the stub does not specify that default, not a value to pass. Runtime signatures show concrete defaults. Locale variants are distinguished when they differ; examples retain native parameter names while facade methods use camelCase.
Types T and TEnum preserve received value/Enum types; Callable, Iterable, Sequence, Collection, Any, Decimal, UUID and datetime types belong to the provider’s Python contract. Optional permits None and Literal restricts concrete values. Results are not automatically converted to ORM attributes or JSON: apply the appropriate cast/encoder.
Methods ordinarily propagate backend parameter errors (TypeError, ValueError, formatting errors). If a locale does not publish a name, the facade raises AttributeError. image and xml need specific dependencies explained in their entries. See the usage guide for unique and optional; unhashable results can prevent uniqueness checks. No claim is made that every method exists for every locale.
Catalog index
Section titled “Catalog index”A-D · E-H · I-L · M-P · Q-T · U-Z
macAddress
Section titled “macAddress”macAddress generates Internet addresses and formats for test data; generating a string does not open a connection.
Orionis typed contract:
def macAddress(multicast: bool=...) -> strActual signature for en_US:
fake.macAddress(multicast: bool = False) -> str| Parameter | Purpose |
|---|---|
multicast | Controls the MAC multicast bit. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.macAddress()macPlatformToken
Section titled “macPlatformToken”macPlatformToken generates User-Agent strings and components for simulated clients.
Orionis typed contract:
def macPlatformToken() -> strActual signature for en_US:
fake.macPlatformToken() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.macPlatformToken()macProcessor
Section titled “macProcessor”macProcessor generates User-Agent strings and components for simulated clients.
Orionis typed contract:
def macProcessor() -> strActual signature for en_US:
fake.macProcessor() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.macProcessor()MD5 digest of random data for fixtures; does not replace the Hash facade for passwords.
Orionis typed contract:
def md5() -> strdef md5(raw_output: Literal[True]) -> bytesdef md5(raw_output: Literal[False]) -> strActual signature for en_US:
fake.md5(raw_output: bool = False) -> bytes | str| Parameter | Purpose |
|---|---|
raw_output | Requests binary/native output rather than usual text. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.md5()metroManilaAddress
Section titled “metroManilaAddress”metroManilaAddress generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def metroManilaAddress() -> strActual signature for en_PH:
fake.metroManilaAddress() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.metroManilaAddress()metroManilaLgu
Section titled “metroManilaLgu”metroManilaLgu generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def metroManilaLgu() -> strActual signature for en_PH:
fake.metroManilaLgu() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.metroManilaLgu()metroManilaPostcode
Section titled “metroManilaPostcode”metroManilaPostcode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def metroManilaPostcode() -> strActual signature for en_PH:
fake.metroManilaPostcode() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.metroManilaPostcode()metropolitanCity
Section titled “metropolitanCity”metropolitanCity generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def metropolitanCity() -> strActual signature for ko_KR:
fake.metropolitanCity() -> strVerified availability: 1 locales. Example locales: ko_KR.
fake = SampleFactory(locale="ko_KR", seed=7).fakevalue = fake.metropolitanCity()middleName
Section titled “middleName”middleName generates names and identity components for test profiles.
Orionis typed contract:
def middleName() -> strActual signature for is_IS:
fake.middleName() -> strVerified availability: 5 locales. Example locales: is_IS, or_IN, ru_RU, uk_UA, vi_VN.
fake = SampleFactory(locale="is_IS", seed=7).fakevalue = fake.middleName()middleNameFemale
Section titled “middleNameFemale”middleNameFemale generates names and identity components for test profiles.
Orionis typed contract:
def middleNameFemale() -> strActual signature for ru_RU:
fake.middleNameFemale() -> strVerified availability: 2 locales. Example locales: ru_RU, uk_UA.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.middleNameFemale()middleNameMale
Section titled “middleNameMale”middleNameMale generates names and identity components for test profiles.
Orionis typed contract:
def middleNameMale() -> strActual signature for ru_RU:
fake.middleNameMale() -> strVerified availability: 2 locales. Example locales: ru_RU, uk_UA.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.middleNameMale()militaryApo
Section titled “militaryApo”militaryApo generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def militaryApo() -> strActual signature for en_US:
fake.militaryApo() -> strVerified availability: 45 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.militaryApo()militaryDpo
Section titled “militaryDpo”militaryDpo generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def militaryDpo() -> strActual signature for en_US:
fake.militaryDpo() -> strVerified availability: 45 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.militaryDpo()militaryShip
Section titled “militaryShip”militaryShip generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def militaryShip() -> strActual signature for en_US:
fake.militaryShip() -> strVerified availability: 45 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.militaryShip()militaryState
Section titled “militaryState”militaryState generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def militaryState() -> strActual signature for en_US:
fake.militaryState() -> strVerified availability: 45 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.militaryState()mimeType
Section titled “mimeType”mimeType generates fictional filenames, paths and media types; it does not create files on disk.
Orionis typed contract:
def mimeType(category: str | None=...) -> strActual signature for en_US:
fake.mimeType(category: str | None = None) -> str| Parameter | Purpose |
|---|---|
category | Provider data category. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.mimeType()mindanaoProvince
Section titled “mindanaoProvince”mindanaoProvince generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def mindanaoProvince() -> strActual signature for en_PH:
fake.mindanaoProvince() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.mindanaoProvince()mindanaoProvinceAddress
Section titled “mindanaoProvinceAddress”mindanaoProvinceAddress generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def mindanaoProvinceAddress() -> strActual signature for en_PH:
fake.mindanaoProvinceAddress() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.mindanaoProvinceAddress()mindanaoProvincePostcode
Section titled “mindanaoProvincePostcode”mindanaoProvincePostcode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def mindanaoProvincePostcode() -> strActual signature for en_PH:
fake.mindanaoProvincePostcode() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.mindanaoProvincePostcode()minguoYear
Section titled “minguoYear”minguoYear generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def minguoYear() -> strActual signature for zh_TW:
fake.minguoYear() -> strVerified availability: 1 locales. Example locales: zh_TW.
fake = SampleFactory(locale="zh_TW", seed=7).fakevalue = fake.minguoYear()miscArea2LandlineNumber
Section titled “miscArea2LandlineNumber”miscArea2LandlineNumber generates fictional telephone numbers in local formats.
Orionis typed contract:
def miscArea2LandlineNumber() -> strActual signature for en_PH:
fake.miscArea2LandlineNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.miscArea2LandlineNumber()miscLandlineIdentifier
Section titled “miscLandlineIdentifier”miscLandlineIdentifier generates fictional telephone numbers in local formats.
Orionis typed contract:
def miscLandlineIdentifier() -> strActual signature for en_PH:
fake.miscLandlineIdentifier() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.miscLandlineIdentifier()mobileNumber
Section titled “mobileNumber”mobileNumber generates fictional telephone numbers in local formats.
Orionis typed contract:
def mobileNumber() -> strActual signature for en_PH:
fake.mobileNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.mobileNumber()mobileOperator
Section titled “mobileOperator”mobileOperator generates fictional telephone numbers in local formats.
Orionis typed contract:
def mobileOperator() -> strActual signature for ar_DZ:
fake.mobileOperator() -> strVerified availability: 2 locales. Example locales: ar_DZ, fr_DZ.
fake = SampleFactory(locale="ar_DZ", seed=7).fakevalue = fake.mobileOperator()month generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def month() -> strActual signature for en_US:
fake.month() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.month()monthInGuj
Section titled “monthInGuj”monthInGuj generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def monthInGuj() -> strActual signature for gu_IN:
fake.monthInGuj() -> strVerified availability: 1 locales. Example locales: gu_IN.
fake = SampleFactory(locale="gu_IN", seed=7).fakevalue = fake.monthInGuj()monthName
Section titled “monthName”monthName generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def monthName() -> strActual signature for en_US:
fake.monthName() -> strActual locale variants:
en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ and 80 more:
fake.monthName() -> straz_AZ, cs_CZ, da_DK, de, de_AT, de_DE and 18 more:
fake.monthName()Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.monthName()monthNameInGuj
Section titled “monthNameInGuj”monthNameInGuj generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def monthNameInGuj() -> strActual signature for gu_IN:
fake.monthNameInGuj() -> strVerified availability: 1 locales. Example locales: gu_IN.
fake = SampleFactory(locale="gu_IN", seed=7).fakevalue = fake.monthNameInGuj()motorcycleLicensePlate
Section titled “motorcycleLicensePlate”motorcycleLicensePlate generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def motorcycleLicensePlate() -> strActual signature for en_PH:
fake.motorcycleLicensePlate() -> strVerified availability: 4 locales. Example locales: en_PH, es_MX, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.motorcycleLicensePlate()motorcycleLicensePlateCdmx
Section titled “motorcycleLicensePlateCdmx”motorcycleLicensePlateCdmx generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def motorcycleLicensePlateCdmx() -> strActual signature for es_MX:
fake.motorcycleLicensePlateCdmx() -> strVerified availability: 1 locales. Example locales: es_MX.
fake = SampleFactory(locale="es_MX", seed=7).fakevalue = fake.motorcycleLicensePlateCdmx()motorcycleLicensePlateNational
Section titled “motorcycleLicensePlateNational”motorcycleLicensePlateNational generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def motorcycleLicensePlateNational() -> strActual signature for es_MX:
fake.motorcycleLicensePlateNational() -> strVerified availability: 1 locales. Example locales: es_MX.
fake = SampleFactory(locale="es_MX", seed=7).fakevalue = fake.motorcycleLicensePlateNational()mountainName
Section titled “mountainName”mountainName generates auxiliary test values and structures; return shape depends on the method.
Orionis typed contract:
def mountainName() -> strActual signature for en_PH:
fake.mountainName() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.mountainName()msisdn
Section titled “msisdn”msisdn generates fictional telephone numbers in local formats.
Orionis typed contract:
def msisdn() -> strActual signature for en_US:
fake.msisdn() -> strVerified availability: 107 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.msisdn()municipality
Section titled “municipality”municipality generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def municipality() -> strActual signature for es_CO:
fake.municipality() -> strVerified availability: 2 locales. Example locales: es_CO, es_AR.
fake = SampleFactory(locale="es_CO", seed=7).fakevalue = fake.municipality()municipalityCode
Section titled “municipalityCode”municipalityCode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def municipalityCode() -> strActual signature for es_CO:
fake.municipalityCode() -> strVerified availability: 2 locales. Example locales: es_CO, es_AR.
fake = SampleFactory(locale="es_CO", seed=7).fakevalue = fake.municipalityCode()name generates names and identity components for test profiles.
Orionis typed contract:
def name() -> strActual signature for en_US:
fake.name() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.name()nameFemale
Section titled “nameFemale”nameFemale generates names and identity components for test profiles.
Orionis typed contract:
def nameFemale() -> strActual signature for en_US:
fake.nameFemale() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.nameFemale()nameMale
Section titled “nameMale”nameMale generates names and identity components for test profiles.
Orionis typed contract:
def nameMale() -> strActual signature for en_US:
fake.nameMale() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.nameMale()nameNonbinary
Section titled “nameNonbinary”nameNonbinary generates names and identity components for test profiles.
Orionis typed contract:
def nameNonbinary() -> strActual signature for en_US:
fake.nameNonbinary() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.nameNonbinary()nationality
Section titled “nationality”nationality generates coordinates and locations for geographic fixtures.
Orionis typed contract:
def nationality() -> strActual signature for pt_PT:
fake.nationality() -> strVerified availability: 1 locales. Example locales: pt_PT.
fake = SampleFactory(locale="pt_PT", seed=7).fakevalue = fake.nationality()naturalPersonNit
Section titled “naturalPersonNit”naturalPersonNit generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def naturalPersonNit() -> strActual signature for es_CO:
fake.naturalPersonNit() -> strVerified availability: 1 locales. Example locales: es_CO.
fake = SampleFactory(locale="es_CO", seed=7).fakevalue = fake.naturalPersonNit()naturalPersonNitWithCheckDigit
Section titled “naturalPersonNitWithCheckDigit”naturalPersonNitWithCheckDigit generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def naturalPersonNitWithCheckDigit() -> strActual signature for es_CO:
fake.naturalPersonNitWithCheckDigit() -> strVerified availability: 1 locales. Example locales: es_CO.
fake = SampleFactory(locale="es_CO", seed=7).fakevalue = fake.naturalPersonNitWithCheckDigit()neighborhood
Section titled “neighborhood”neighborhood generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def neighborhood() -> strActual signature for pt_BR:
fake.neighborhood() -> strVerified availability: 1 locales. Example locales: pt_BR.
fake = SampleFactory(locale="pt_BR", seed=7).fakevalue = fake.neighborhood()nicHandle
Section titled “nicHandle”nicHandle generates Internet addresses and formats for test data; generating a string does not open a connection.
Orionis typed contract:
def nicHandle(suffix: str=...) -> strActual signature for en_US:
fake.nicHandle(suffix: str = 'FAKE') -> str| Parameter | Purpose |
|---|---|
suffix | Generated string suffix. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.nicHandle()nicHandles
Section titled “nicHandles”nicHandles generates Internet addresses and formats for test data; generating a string does not open a connection.
Orionis typed contract:
def nicHandles(count: int=..., suffix: str=...) -> list[str]Actual signature for en_US:
fake.nicHandles(count: int = 1, suffix: str = '????') -> List[str]| Parameter | Purpose |
|---|---|
count | Number of items or structures produced by the provider. |
suffix | Generated string suffix. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.nicHandles()nie generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def nie() -> strActual signature for es_ES:
fake.nie() -> strVerified availability: 3 locales. Example locales: es_ES, es, es_CA.
fake = SampleFactory(locale="es_ES", seed=7).fakevalue = fake.nie()nif generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def nif() -> strActual signature for es_ES:
fake.nif() -> strVerified availability: 3 locales. Example locales: es_ES, es, es_CA.
fake = SampleFactory(locale="es_ES", seed=7).fakevalue = fake.nif()nip generates names and identity components for test profiles.
Orionis typed contract:
def nip() -> strActual signature for pl_PL:
fake.nip() -> strVerified availability: 1 locales. Example locales: pl_PL.
fake = SampleFactory(locale="pl_PL", seed=7).fakevalue = fake.nip()nonArea2LandlineAreaCode
Section titled “nonArea2LandlineAreaCode”nonArea2LandlineAreaCode generates fictional telephone numbers in local formats.
Orionis typed contract:
def nonArea2LandlineAreaCode() -> strActual signature for en_PH:
fake.nonArea2LandlineAreaCode() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.nonArea2LandlineAreaCode()nonArea2LandlineNumber
Section titled “nonArea2LandlineNumber”nonArea2LandlineNumber generates fictional telephone numbers in local formats.
Orionis typed contract:
def nonArea2LandlineNumber() -> strActual signature for en_PH:
fake.nonArea2LandlineNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.nonArea2LandlineNumber()nonprofitPrefix
Section titled “nonprofitPrefix”nonprofitPrefix generates company names and expressions for test entities.
Orionis typed contract:
def nonprofitPrefix() -> strActual signature for th_TH:
fake.nonprofitPrefix() -> strVerified availability: 2 locales. Example locales: th, th_TH.
fake = SampleFactory(locale="th_TH", seed=7).fakevalue = fake.nonprofitPrefix()nuip generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def nuip() -> strActual signature for es_CO:
fake.nuip() -> strVerified availability: 1 locales. Example locales: es_CO.
fake = SampleFactory(locale="es_CO", seed=7).fakevalue = fake.nuip()nullBoolean
Section titled “nullBoolean”nullBoolean generates auxiliary test values and structures; return shape depends on the method.
Orionis typed contract:
def nullBoolean() -> bool | NoneActual signature for en_US:
fake.nullBoolean() -> bool | NoneVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.nullBoolean()numberedStreet
Section titled “numberedStreet”numberedStreet generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def numberedStreet() -> strActual signature for vi_VN:
fake.numberedStreet() -> strVerified availability: 1 locales. Example locales: vi_VN.
fake = SampleFactory(locale="vi_VN", seed=7).fakevalue = fake.numberedStreet()numerify
Section titled “numerify”Replaces numeric placeholders in text; each placeholder follows the native provider rule.
Orionis typed contract:
def numerify(text: str=...) -> strActual signature for en_US:
fake.numerify(text: str = '###') -> str| Parameter | Purpose |
|---|---|
text | Template or text processed by the provider. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.numerify()nuss generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def nuss(company: bool=...) -> strActual signature for es_ES:
fake.nuss(company: bool = False) -> str| Parameter | Purpose |
|---|---|
company | Generates a company NUSS when enabled. |
Verified availability: 3 locales. Example locales: es_ES, es, es_CA.
fake = SampleFactory(locale="es_ES", seed=7).fakevalue = fake.nuss()oldPostalCode
Section titled “oldPostalCode”oldPostalCode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def oldPostalCode() -> strActual signature for ko_KR:
fake.oldPostalCode() -> strVerified availability: 1 locales. Example locales: ko_KR.
fake = SampleFactory(locale="ko_KR", seed=7).fakevalue = fake.oldPostalCode()opera generates User-Agent strings and components for simulated clients.
Orionis typed contract:
def opera() -> strActual signature for en_US:
fake.opera() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.opera()operatorId
Section titled “operatorId”operatorId generates fictional telephone numbers in local formats.
Orionis typed contract:
def operatorId() -> strActual signature for ar_JO:
fake.operatorId() -> strVerified availability: 1 locales. Example locales: ar_JO.
fake = SampleFactory(locale="ar_JO", seed=7).fakevalue = fake.operatorId()ordinalFloorNumber
Section titled “ordinalFloorNumber”ordinalFloorNumber generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def ordinalFloorNumber() -> strActual signature for en_PH:
fake.ordinalFloorNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.ordinalFloorNumber()ordinalStreetNumber
Section titled “ordinalStreetNumber”ordinalStreetNumber generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def ordinalStreetNumber() -> strActual signature for en_PH:
fake.ordinalStreetNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.ordinalStreetNumber()orgAndVatId
Section titled “orgAndVatId”orgAndVatId generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def orgAndVatId(long: bool=..., dash: bool=...) -> tuple[str, str]Actual signature for sv_SE:
fake.orgAndVatId(long: bool = False, dash: bool = True) -> Tuple[str, str]| Parameter | Purpose |
|---|---|
long | Requests the long localized identifier variant. |
dash | Includes a hyphen in the identifier representation. |
Verified availability: 1 locales. Example locales: sv_SE.
fake = SampleFactory(locale="sv_SE", seed=7).fakevalue = fake.orgAndVatId()orgId generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def orgId(long: bool=..., dash: bool=...) -> strActual signature for sv_SE:
fake.orgId(long: bool = False, dash: bool = True) -> str| Parameter | Purpose |
|---|---|
long | Requests the long localized identifier variant. |
dash | Includes a hyphen in the identifier representation. |
Verified availability: 1 locales. Example locales: sv_SE.
fake = SampleFactory(locale="sv_SE", seed=7).fakevalue = fake.orgId()pagibig
Section titled “pagibig”pagibig generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def pagibig() -> strActual signature for en_PH:
fake.pagibig() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.pagibig()pan generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def pan() -> strActual signature for en_IN:
fake.pan() -> strVerified availability: 1 locales. Example locales: en_IN.
fake = SampleFactory(locale="en_IN", seed=7).fakevalue = fake.pan()paragraph
Section titled “paragraph”paragraph generates placeholder text for content and forms.
Orionis typed contract:
def paragraph(nb_sentences: int=..., variable_nb_sentences: bool=..., ext_word_list: Sequence[str] | None=...) -> strActual signature for en_US:
fake.paragraph(nb_sentences: int = 3, variable_nb_sentences: bool = True, ext_word_list: Sequence[str] | None = None) -> str| Parameter | Purpose |
|---|---|
nb_sentences | Target sentence count. |
variable_nb_sentences | Allows variation around target sentence count. |
ext_word_list | Alternative vocabulary or None for native data. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.paragraph()paragraphs
Section titled “paragraphs”paragraphs generates placeholder text for content and forms.
Orionis typed contract:
def paragraphs(nb: int=..., ext_word_list: Sequence[str] | None=...) -> list[str]Actual signature for en_US:
fake.paragraphs(nb: int = 3, ext_word_list: Sequence[str] | None = None) -> List[str]| Parameter | Purpose |
|---|---|
nb | Requested result count. |
ext_word_list | Alternative vocabulary or None for native data. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.paragraphs()Replaces {{provider}} and {{provider:group}} tokens. Tokens use NATIVE backend names such as first_name; the Python facade method remains camelCase. Unknown tokens raise AttributeError.
Helper accessible through dynamic facade dispatch; not declared in _ProviderMethods.
Actual signature for en_US:
fake.parse(text: str) -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakefake.setArguments("small", {"min_value": 1, "max_value": 3})value = fake.parse("{{first_name}} / {{pyint:small}}")partitionedBuildingNumber
Section titled “partitionedBuildingNumber”partitionedBuildingNumber generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def partitionedBuildingNumber() -> strActual signature for en_PH:
fake.partitionedBuildingNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.partitionedBuildingNumber()passportDates
Section titled “passportDates”passportDates generates fictional passport formats for fixtures, not valid travel documents.
Orionis typed contract:
def passportDates(birthday: datetime.date=...) -> tuple[str, str, str]Actual signature for en_US:
fake.passportDates(birthday: datetime.date = datetime.date(2026, 10, 22)) -> Tuple[str, str, str]| Parameter | Purpose |
|---|---|
birthday | Reference birth date for the passport. |
Verified availability: 106 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.passportDates()passportDob
Section titled “passportDob”passportDob generates fictional passport formats for fixtures, not valid travel documents.
Orionis typed contract:
def passportDob() -> datetime.dateActual signature for en_US:
fake.passportDob() -> datetime.dateVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.passportDob()passportFull
Section titled “passportFull”passportFull generates fictional passport formats for fixtures, not valid travel documents.
Orionis typed contract:
def passportFull() -> strActual signature for en_US:
fake.passportFull() -> strVerified availability: 106 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.passportFull()passportGender
Section titled “passportGender”passportGender generates fictional passport formats for fixtures, not valid travel documents.
Orionis typed contract:
def passportGender(seed: int=...) -> Literal['M', 'F', 'X']Actual signature for en_US:
fake.passportGender(seed: int = 0) -> Literal['M', 'F', 'X']| Parameter | Purpose |
|---|---|
seed | Provider-specific seed. |
Verified availability: 106 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.passportGender()passportNumber
Section titled “passportNumber”passportNumber generates fictional passport formats for fixtures, not valid travel documents.
Orionis typed contract:
def passportNumber() -> strActual signature for en_US:
fake.passportNumber() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.passportNumber()passportOwner
Section titled “passportOwner”passportOwner generates fictional passport formats for fixtures, not valid travel documents.
Orionis typed contract:
def passportOwner(gender: Literal['M', 'F', 'X']=...) -> tuple[str, str]Actual signature for en_US:
fake.passportOwner(gender: Literal['M', 'F', 'X'] = 'X') -> Tuple[str, str]| Parameter | Purpose |
|---|---|
gender | Gender selection using supported locale-specific values. |
Actual locale variants:
en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ and 103 more:
fake.passportOwner(gender: Literal['M', 'F', 'X'] = 'X') -> Tuple[str, str]ru_RU:
fake.passportOwner(gender: Literal['M', 'F', 'X'] = 'M') -> Tuple[str, str]Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.passportOwner()password
Section titled “password”Generates a fictional password with configurable character classes for fixtures; does not compute an authentication hash.
Orionis typed contract:
def password(length: int=..., special_chars: bool=..., digits: bool=..., upper_case: bool=..., lower_case: bool=...) -> strActual signature for en_US:
fake.password(length: int = 10, special_chars: bool = True, digits: bool = True, upper_case: bool = True, lower_case: bool = True) -> str| Parameter | Purpose |
|---|---|
length | Value length/size; units depend on this provider. |
special_chars | Includes special characters in the fictional password. |
digits | Number of result digits. |
upper_case | Includes uppercase password characters. |
lower_case | Includes lowercase password characters. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.password(length=16)pastDate
Section titled “pastDate”pastDate generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def pastDate(start_date: datetime.date | datetime.datetime | datetime.timedelta | str | int=..., tzinfo: datetime.tzinfo | None=...) -> datetime.dateActual signature for en_US:
fake.pastDate(start_date: datetime.date | datetime.datetime | datetime.timedelta | str | int = '-30d', tzinfo: datetime.tzinfo | None = None) -> datetime.date| Parameter | Purpose |
|---|---|
start_date | Start boundary: date/time, relative interval or provider-supported format. |
tzinfo | Timezone for generated datetime; None uses native behavior. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pastDate()pastDatetime
Section titled “pastDatetime”pastDatetime generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def pastDatetime(start_date: datetime.date | datetime.datetime | datetime.timedelta | str | int=..., tzinfo: datetime.tzinfo | None=...) -> datetime.datetimeActual signature for en_US:
fake.pastDatetime(start_date: datetime.date | datetime.datetime | datetime.timedelta | str | int = '-30d', tzinfo: datetime.tzinfo | None = None) -> datetime.datetime| Parameter | Purpose |
|---|---|
start_date | Start boundary: date/time, relative interval or provider-supported format. |
tzinfo | Timezone for generated datetime; None uses native behavior. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pastDatetime()personRut
Section titled “personRut”personRut generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def personRut() -> strActual signature for es_CL:
fake.personRut() -> strVerified availability: 1 locales. Example locales: es_CL.
fake = SampleFactory(locale="es_CL", seed=7).fakevalue = fake.personRut()pesel generates names and identity components for test profiles.
Orionis typed contract:
def pesel(date_of_birth: datetime.datetime | None=..., sex: str | None=...) -> strActual signature for pl_PL:
fake.pesel(date_of_birth: datetime.datetime | None = None, sex: str | None = None) -> str| Parameter | Purpose |
|---|---|
date_of_birth | Birth date used to build the identifier. |
sex | Sex selection using supported locale-specific values. |
Verified availability: 1 locales. Example locales: pl_PL.
fake = SampleFactory(locale="pl_PL", seed=7).fakevalue = fake.pesel()peselComputeCheckDigit
Section titled “peselComputeCheckDigit”Calculates a PESEL check digit from the initial digit string; does not generate the whole identifier.
Orionis typed contract:
def peselComputeCheckDigit(pesel: str) -> intActual signature for pl_PL:
fake.peselComputeCheckDigit(pesel: str) -> int| Parameter | Purpose |
|---|---|
pesel | Initial PESEL digits used to compute its check digit. |
Verified availability: 1 locales. Example locales: pl_PL.
fake = SampleFactory(locale="pl_PL", seed=7).fakevalue = fake.peselComputeCheckDigit(pesel="4405140145")philhealth
Section titled “philhealth”philhealth generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def philhealth() -> strActual signature for en_PH:
fake.philhealth() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.philhealth()phoneNumber
Section titled “phoneNumber”phoneNumber generates fictional telephone numbers in local formats.
Orionis typed contract:
def phoneNumber() -> strActual signature for en_US:
fake.phoneNumber() -> strVerified availability: 107 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.phoneNumber()phonenumberPrefix
Section titled “phonenumberPrefix”phonenumberPrefix generates fictional telephone numbers in local formats.
Orionis typed contract:
def phonenumberPrefix() -> intActual signature for zh_CN:
fake.phonenumberPrefix() -> intVerified availability: 1 locales. Example locales: zh_CN.
fake = SampleFactory(locale="zh_CN", seed=7).fakevalue = fake.phonenumberPrefix()pincodeInArmy
Section titled “pincodeInArmy”pincodeInArmy generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def pincodeInArmy() -> intActual signature for en_IN:
fake.pincodeInArmy() -> intVerified availability: 1 locales. Example locales: en_IN.
fake = SampleFactory(locale="en_IN", seed=7).fakevalue = fake.pincodeInArmy()pincodeInMilitary
Section titled “pincodeInMilitary”pincodeInMilitary generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def pincodeInMilitary() -> intActual signature for en_IN:
fake.pincodeInMilitary() -> intVerified availability: 1 locales. Example locales: en_IN.
fake = SampleFactory(locale="en_IN", seed=7).fakevalue = fake.pincodeInMilitary()pincodeInState
Section titled “pincodeInState”pincodeInState generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def pincodeInState(state_abbr: str | None=..., include_union_territories: bool=...) -> intActual signature for en_IN:
fake.pincodeInState(state_abbr: str | None = None, include_union_territories: bool = False) -> int| Parameter | Purpose |
|---|---|
state_abbr | State abbreviation restricting localized output. |
include_union_territories | Includes Indian Union Territories in postal codes. |
Verified availability: 1 locales. Example locales: en_IN.
fake = SampleFactory(locale="en_IN", seed=7).fakevalue = fake.pincodeInState()placeName
Section titled “placeName”placeName generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def placeName() -> strActual signature for pt_PT:
fake.placeName() -> strVerified availability: 1 locales. Example locales: pt_PT.
fake = SampleFactory(locale="pt_PT", seed=7).fakevalue = fake.placeName()plantName
Section titled “plantName”plantName generates auxiliary test values and structures; return shape depends on the method.
Orionis typed contract:
def plantName() -> strActual signature for en_PH:
fake.plantName() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.plantName()plantStreetName
Section titled “plantStreetName”plantStreetName generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def plantStreetName() -> strActual signature for es_CL:
fake.plantStreetName() -> strVerified availability: 1 locales. Example locales: es_CL.
fake = SampleFactory(locale="es_CL", seed=7).fakevalue = fake.plantStreetName()plateLetter
Section titled “plateLetter”plateLetter generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateLetter() -> strActual signature for ru_RU:
fake.plateLetter() -> strVerified availability: 1 locales. Example locales: ru_RU.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.plateLetter()plateLetterPrefix
Section titled “plateLetterPrefix”plateLetterPrefix generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateLetterPrefix(region_name: str | None=...) -> strActual signature for uk_UA:
fake.plateLetterPrefix(region_name: str | None = None) -> str| Parameter | Purpose |
|---|---|
region_name | Region name used to form the local license plate. |
Verified availability: 1 locales. Example locales: uk_UA.
fake = SampleFactory(locale="uk_UA", seed=7).fakevalue = fake.plateLetterPrefix()plateLetterSuffix
Section titled “plateLetterSuffix”plateLetterSuffix generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateLetterSuffix() -> strActual signature for uk_UA:
fake.plateLetterSuffix() -> strVerified availability: 1 locales. Example locales: uk_UA.
fake = SampleFactory(locale="uk_UA", seed=7).fakevalue = fake.plateLetterSuffix()plateNumber
Section titled “plateNumber”plateNumber generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateNumber() -> strActual signature for ru_RU:
fake.plateNumber() -> strVerified availability: 2 locales. Example locales: ru_RU, uk_UA.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.plateNumber()plateNumberExtra
Section titled “plateNumberExtra”plateNumberExtra generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateNumberExtra() -> strActual signature for ru_RU:
fake.plateNumberExtra() -> strVerified availability: 1 locales. Example locales: ru_RU.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.plateNumberExtra()plateNumberSpecial
Section titled “plateNumberSpecial”plateNumberSpecial generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateNumberSpecial() -> strActual signature for ru_RU:
fake.plateNumberSpecial() -> strVerified availability: 1 locales. Example locales: ru_RU.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.plateNumberSpecial()plateRegionCode
Section titled “plateRegionCode”plateRegionCode generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateRegionCode(region_name: str | None=...) -> strActual signature for uk_UA:
fake.plateRegionCode(region_name: str | None = None) -> str| Parameter | Purpose |
|---|---|
region_name | Region name used to form the local license plate. |
Verified availability: 1 locales. Example locales: uk_UA.
fake = SampleFactory(locale="uk_UA", seed=7).fakevalue = fake.plateRegionCode()plateSuffix
Section titled “plateSuffix”plateSuffix generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def plateSuffix() -> strActual signature for ru_RU:
fake.plateSuffix() -> strVerified availability: 1 locales. Example locales: ru_RU.
fake = SampleFactory(locale="ru_RU", seed=7).fakevalue = fake.plateSuffix()pldtArea2LandlineNumber
Section titled “pldtArea2LandlineNumber”pldtArea2LandlineNumber generates fictional telephone numbers in local formats.
Orionis typed contract:
def pldtArea2LandlineNumber() -> strActual signature for en_PH:
fake.pldtArea2LandlineNumber() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.pldtArea2LandlineNumber()policeId
Section titled “policeId”policeId generates fictional administrative or tax identifiers; format depends on country.
Orionis typed contract:
def policeId() -> strActual signature for el_GR:
fake.policeId() -> strVerified availability: 1 locales. Example locales: el_GR.
fake = SampleFactory(locale="el_GR", seed=7).fakevalue = fake.policeId()portNumber
Section titled “portNumber”portNumber generates Internet addresses and formats for test data; generating a string does not open a connection.
Orionis typed contract:
def portNumber(is_system: bool=..., is_user: bool=..., is_dynamic: bool=...) -> intActual signature for en_US:
fake.portNumber(is_system: bool = False, is_user: bool = False, is_dynamic: bool = False) -> int| Parameter | Purpose |
|---|---|
is_system | Selects system or well-known ports. |
is_user | Selects user or registered ports. |
is_dynamic | Selects dynamic/private/ephemeral ports. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.portNumber()postalCode
Section titled “postalCode”postalCode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postalCode() -> strActual signature for ko_KR:
fake.postalCode() -> strVerified availability: 1 locales. Example locales: ko_KR.
fake = SampleFactory(locale="ko_KR", seed=7).fakevalue = fake.postalCode()postalCodeLetter
Section titled “postalCodeLetter”postalCodeLetter generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postalCodeLetter() -> strActual signature for en_CA:
fake.postalCodeLetter() -> strVerified availability: 2 locales. Example locales: en_CA, fr_CA.
fake = SampleFactory(locale="en_CA", seed=7).fakevalue = fake.postalCodeLetter()postalcode
Section titled “postalcode”postalcode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postalcode() -> strActual signature for en_US:
fake.postalcode() -> strVerified availability: 49 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.postalcode()postalcodeInProvince
Section titled “postalcodeInProvince”postalcodeInProvince generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postalcodeInProvince(province_abbr: str | None=...) -> strActual signature for en_CA:
fake.postalcodeInProvince(province_abbr: str | None = None) -> str| Parameter | Purpose |
|---|---|
province_abbr | Locale-supported province abbreviation. |
Verified availability: 2 locales. Example locales: en_CA, fr_CA.
fake = SampleFactory(locale="en_CA", seed=7).fakevalue = fake.postalcodeInProvince()postalcodeInState
Section titled “postalcodeInState”postalcodeInState generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postalcodeInState(state_abbr: str | None=...) -> strActual signature for en_US:
fake.postalcodeInState(state_abbr: str | None = None) -> str| Parameter | Purpose |
|---|---|
state_abbr | State abbreviation restricting localized output. |
Verified availability: 45 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.postalcodeInState()postalcodePlus4
Section titled “postalcodePlus4”postalcodePlus4 generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postalcodePlus4() -> strActual signature for en_US:
fake.postalcodePlus4() -> strVerified availability: 45 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.postalcodePlus4()postcode
Section titled “postcode”postcode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postcode() -> strActual signature for en_US:
fake.postcode() -> str| Parameter | Purpose |
|---|---|
formatted | Controls postal-code presentation in supporting locales. |
Actual locale variants:
en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ and 103 more:
fake.postcode() -> strpt_BR:
fake.postcode(formatted: bool = True) -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.postcode()postcodeCityProvince
Section titled “postcodeCityProvince”postcodeCityProvince generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postcodeCityProvince() -> strActual signature for it_IT:
fake.postcodeCityProvince() -> strVerified availability: 1 locales. Example locales: it_IT.
fake = SampleFactory(locale="it_IT", seed=7).fakevalue = fake.postcodeCityProvince()postcodeInArmy
Section titled “postcodeInArmy”postcodeInArmy generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postcodeInArmy() -> intActual signature for en_IN:
fake.postcodeInArmy() -> intVerified availability: 1 locales. Example locales: en_IN.
fake = SampleFactory(locale="en_IN", seed=7).fakevalue = fake.postcodeInArmy()postcodeInMilitary
Section titled “postcodeInMilitary”postcodeInMilitary generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postcodeInMilitary() -> intActual signature for en_IN:
fake.postcodeInMilitary() -> intVerified availability: 1 locales. Example locales: en_IN.
fake = SampleFactory(locale="en_IN", seed=7).fakevalue = fake.postcodeInMilitary()postcodeInProvince
Section titled “postcodeInProvince”postcodeInProvince generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postcodeInProvince(province_abbr: str | None=...) -> strActual signature for en_CA:
fake.postcodeInProvince(province_abbr: str | None = None) -> str| Parameter | Purpose |
|---|---|
province_abbr | Locale-supported province abbreviation. |
Verified availability: 2 locales. Example locales: en_CA, fr_CA.
fake = SampleFactory(locale="en_CA", seed=7).fakevalue = fake.postcodeInProvince()postcodeInState
Section titled “postcodeInState”postcodeInState generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def postcodeInState(state_abbr: str | None=...) -> strActual signature for en_US:
fake.postcodeInState(state_abbr: str | None = None) -> str| Parameter | Purpose |
|---|---|
state_abbr | State abbreviation restricting localized output. |
include_union_territories | Includes Indian Union Territories in postal codes. |
Actual locale variants:
en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG and 42 more:
fake.postcodeInState(state_abbr: str | None = None) -> stren_IN:
fake.postcodeInState(state_abbr: str | None = None, include_union_territories: bool = False) -> intVerified availability: 49 locales. Example locales: en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_EG, ar_JO, ar_PS.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.postcodeInState()prefecture
Section titled “prefecture”prefecture generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def prefecture() -> strActual signature for ja_JP:
fake.prefecture() -> strVerified availability: 1 locales. Example locales: ja_JP.
fake = SampleFactory(locale="ja_JP", seed=7).fakevalue = fake.prefecture()prefix
Section titled “prefix”prefix generates names and identity components for test profiles.
Orionis typed contract:
def prefix() -> strActual signature for en_US:
fake.prefix() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.prefix()prefixFemale
Section titled “prefixFemale”prefixFemale generates names and identity components for test profiles.
Orionis typed contract:
def prefixFemale() -> strActual signature for en_US:
fake.prefixFemale() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.prefixFemale()prefixMale
Section titled “prefixMale”prefixMale generates names and identity components for test profiles.
Orionis typed contract:
def prefixMale() -> strActual signature for en_US:
fake.prefixMale() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.prefixMale()prefixNonbinary
Section titled “prefixNonbinary”prefixNonbinary generates names and identity components for test profiles.
Orionis typed contract:
def prefixNonbinary() -> strActual signature for en_US:
fake.prefixNonbinary() -> strVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.prefixNonbinary()pricetag
Section titled “pricetag”pricetag generates currency names, symbols and codes for catalogs.
Orionis typed contract:
def pricetag() -> strActual signature for en_US:
fake.pricetag() -> strActual locale variants:
en_US, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ and 95 more:
fake.pricetag() -> straz_AZ, da_DK, de, de_CH, de_DE, en_CA and 3 more:
fake.pricetag()Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pricetag()profile
Section titled “profile”profile generates composite profiles for fixtures.
Orionis typed contract:
def profile(fields: list[str] | None=..., sex: Literal['M', 'F', 'X'] | None=...) -> dict[str, str | tuple[Decimal, Decimal] | list[str] | datetime.date]Actual signature for en_US:
fake.profile(fields: List[str] | None = None, sex: Literal['M', 'F', 'X'] | None = None) -> Dict[str, str | Tuple[decimal.Decimal, decimal.Decimal] | List[str] | datetime.date]| Parameter | Purpose |
|---|---|
fields | Profile field names included in the result. |
sex | Sex selection using supported locale-specific values. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.profile()protocolLicensePlate
Section titled “protocolLicensePlate”protocolLicensePlate generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def protocolLicensePlate() -> strActual signature for en_PH:
fake.protocolLicensePlate() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.protocolLicensePlate()provider
Section titled “provider”Looks up a provider by its case-insensitive provider identifier, or returns None. Receiving a native object neither registers it nor adds methods.
Helper accessible through dynamic facade dispatch; not declared in _ProviderMethods.
Actual signature for en_US:
fake.provider(name: str) -> ForwardRef('BaseProvider') | NoneVerified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.provider("person")providerCode
Section titled “providerCode”providerCode generates fictional telephone numbers in local formats.
Orionis typed contract:
def providerCode() -> strActual signature for ar_PS:
fake.providerCode() -> strVerified availability: 2 locales. Example locales: ar_PS, az_AZ.
fake = SampleFactory(locale="ar_PS", seed=7).fakevalue = fake.providerCode()province
Section titled “province”province generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def province() -> strActual signature for en_CA:
fake.province() -> strActual locale variants:
en_CA, en_PH, es_AR, es_CL, fil_PH, fr_CA and 9 more:
fake.province() -> strvi_VN:
fake.province()Verified availability: 16 locales. Example locales: en_CA, en_PH, es_AR, es_CL, fil_PH, fr_CA, ko_KR, ne_NP.
fake = SampleFactory(locale="en_CA", seed=7).fakevalue = fake.province()provinceAbbr
Section titled “provinceAbbr”provinceAbbr generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def provinceAbbr() -> strActual signature for en_CA:
fake.provinceAbbr() -> strVerified availability: 2 locales. Example locales: en_CA, fr_CA.
fake = SampleFactory(locale="en_CA", seed=7).fakevalue = fake.provinceAbbr()provinceCode
Section titled “provinceCode”provinceCode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def provinceCode() -> strActual signature for es_CL:
fake.provinceCode() -> strVerified availability: 1 locales. Example locales: es_CL.
fake = SampleFactory(locale="es_CL", seed=7).fakevalue = fake.provinceCode()provinceLgu
Section titled “provinceLgu”provinceLgu generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def provinceLgu() -> strActual signature for en_PH:
fake.provinceLgu() -> strVerified availability: 3 locales. Example locales: en_PH, fil_PH, tl_PH.
fake = SampleFactory(locale="en_PH", seed=7).fakevalue = fake.provinceLgu()provinceName
Section titled “provinceName”provinceName generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def provinceName() -> strActual signature for vi_VN:
fake.provinceName() -> strVerified availability: 1 locales. Example locales: vi_VN.
fake = SampleFactory(locale="vi_VN", seed=7).fakevalue = fake.provinceName()provincePrefix
Section titled “provincePrefix”provincePrefix generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def provincePrefix() -> strActual signature for vi_VN:
fake.provincePrefix() -> strVerified availability: 1 locales. Example locales: vi_VN.
fake = SampleFactory(locale="vi_VN", seed=7).fakevalue = fake.provincePrefix()provincesCode
Section titled “provincesCode”provincesCode generates addresses and geographic subdivisions for test forms, deliveries and profiles.
Orionis typed contract:
def provincesCode() -> strActual signature for es_AR:
fake.provincesCode() -> strVerified availability: 1 locales. Example locales: es_AR.
fake = SampleFactory(locale="es_AR", seed=7).fakevalue = fake.provincesCode()psv generates auxiliary test values and structures; return shape depends on the method.
Orionis typed contract:
def psv(header: Sequence[str] | None=..., data_columns: tuple[str, str]=..., num_rows: int=..., include_row_ids: bool=...) -> strActual signature for en_US:
fake.psv(header: Sequence[str] | None = None, data_columns: Tuple[str, str] = ('{{name}}', '{{address}}'), num_rows: int = 10, include_row_ids: bool = False) -> str| Parameter | Purpose |
|---|---|
header | Column headings or None to omit them. |
data_columns | Structure, column or generator-token definition. |
num_rows | Number of serialized data rows. |
include_row_ids | Adds a sequential row identifier. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.psv(num_rows=2)publicTransportLicensePlate
Section titled “publicTransportLicensePlate”publicTransportLicensePlate generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def publicTransportLicensePlate() -> strActual signature for es_MX:
fake.publicTransportLicensePlate() -> strVerified availability: 1 locales. Example locales: es_MX.
fake = SampleFactory(locale="es_MX", seed=7).fakevalue = fake.publicTransportLicensePlate()publicTransportLicensePlateLettered
Section titled “publicTransportLicensePlateLettered”publicTransportLicensePlateLettered generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def publicTransportLicensePlateLettered() -> strActual signature for es_MX:
fake.publicTransportLicensePlateLettered() -> strVerified availability: 1 locales. Example locales: es_MX.
fake = SampleFactory(locale="es_MX", seed=7).fakevalue = fake.publicTransportLicensePlateLettered()publicTransportLicensePlateNumbered
Section titled “publicTransportLicensePlateNumbered”publicTransportLicensePlateNumbered generates vehicle plates and identifiers for examples and fixtures.
Orionis typed contract:
def publicTransportLicensePlateNumbered() -> strActual signature for es_MX:
fake.publicTransportLicensePlateNumbered() -> strVerified availability: 1 locales. Example locales: es_MX.
fake = SampleFactory(locale="es_MX", seed=7).fakevalue = fake.publicTransportLicensePlateNumbered()pwzDoctor
Section titled “pwzDoctor”pwzDoctor generates names and identity components for test profiles.
Orionis typed contract:
def pwzDoctor() -> strActual signature for pl_PL:
fake.pwzDoctor() -> strVerified availability: 1 locales. Example locales: pl_PL.
fake = SampleFactory(locale="pl_PL", seed=7).fakevalue = fake.pwzDoctor()pwzDoctorComputeCheckDigit
Section titled “pwzDoctorComputeCheckDigit”Calculates the Polish doctor identifier check digit from its digit sequence.
Orionis typed contract:
def pwzDoctorComputeCheckDigit(x: Sequence[int]) -> intActual signature for pl_PL:
fake.pwzDoctorComputeCheckDigit(x: Sequence[int]) -> int| Parameter | Purpose |
|---|---|
x | Digit sequence used for check-digit calculation. |
Verified availability: 1 locales. Example locales: pl_PL.
fake = SampleFactory(locale="pl_PL", seed=7).fakevalue = fake.pwzDoctorComputeCheckDigit(x=[1, 2, 3, 4, 5, 6])pwzNurse
Section titled “pwzNurse”pwzNurse generates names and identity components for test profiles.
Orionis typed contract:
def pwzNurse(kind: str=...) -> strActual signature for pl_PL:
fake.pwzNurse(kind: str = 'nurse') -> str| Parameter | Purpose |
|---|---|
kind | Nursing profession kind for a PWZ identifier; defaults to nurse. |
Verified availability: 1 locales. Example locales: pl_PL.
fake = SampleFactory(locale="pl_PL", seed=7).fakevalue = fake.pwzNurse()pybool
Section titled “pybool”Boolean with truth_probability between 0 and 100.
Orionis typed contract:
def pybool(truth_probability: int=...) -> boolActual signature for en_US:
fake.pybool(truth_probability: int = 50) -> bool| Parameter | Purpose |
|---|---|
truth_probability | True percentage (0 to 100). |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pybool()pydecimal
Section titled “pydecimal”Returns Decimal with digit/value limits and sign, without automatically converting it to float/text.
Orionis typed contract:
def pydecimal(left_digits: int | None=..., right_digits: int | None=..., positive: bool | None=..., min_value: float | int | Decimal | None=..., max_value: float | int | Decimal | None=...) -> DecimalActual signature for en_US:
fake.pydecimal(left_digits: int | None = None, right_digits: int | None = None, positive: bool | None = None, min_value: float | int | decimal.Decimal | None = None, max_value: float | int | decimal.Decimal | None = None) -> decimal.Decimal| Parameter | Purpose |
|---|---|
left_digits | Digit count to the left of the decimal separator. |
right_digits | Fractional digit count. |
positive | Restricts sign when not None. |
min_value | Minimum permitted numeric value. |
max_value | Maximum permitted numeric value. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pydecimal(left_digits=3, right_digits=2, positive=True)pydict
Section titled “pydict”pydict generates Python values and containers for test attributes.
Orionis typed contract:
def pydict(nb_elements: int=..., variable_nb_elements: bool=..., value_types: list[type] | tuple[type, ...] | None=..., allowed_types: list[type] | tuple[type, ...] | None=...) -> dict[Any, Any]Actual signature for en_US:
fake.pydict(nb_elements: int = 10, variable_nb_elements: bool = True, value_types: List[Type] | Tuple[Type, ...] | None = None, allowed_types: List[Type] | Tuple[Type, ...] | None = None) -> Dict[Any, Any]| Parameter | Purpose |
|---|---|
nb_elements | Number of elements to generate. |
variable_nb_elements | Allows count variation around its target. |
value_types | Python types of generated values. |
allowed_types | Python types the container may select. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pydict()pyfloat
Section titled “pyfloat”Returns float with digit, sign and value limits.
Orionis typed contract:
def pyfloat(left_digits: int | None=..., right_digits: int | None=..., positive: bool | None=..., min_value: float | int | None=..., max_value: float | int | None=...) -> floatActual signature for en_US:
fake.pyfloat(left_digits: int | None = None, right_digits: int | None = None, positive: bool | None = None, min_value: float | int | None = None, max_value: float | int | None = None) -> float| Parameter | Purpose |
|---|---|
left_digits | Digit count to the left of the decimal separator. |
right_digits | Fractional digit count. |
positive | Restricts sign when not None. |
min_value | Minimum permitted numeric value. |
max_value | Maximum permitted numeric value. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pyfloat(left_digits=2, right_digits=2, positive=True)pyint generates Python values and containers for test attributes.
Orionis typed contract:
def pyint(min_value: int=..., max_value: int=..., step: int=...) -> intActual signature for en_US:
fake.pyint(min_value: int = 0, max_value: int = 9999, step: int = 1) -> int| Parameter | Purpose |
|---|---|
min_value | Minimum permitted numeric value. |
max_value | Maximum permitted numeric value. |
step | Integer selection step. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pyint()pyiterable
Section titled “pyiterable”pyiterable generates Python values and containers for test attributes.
Orionis typed contract:
def pyiterable(nb_elements: int=..., variable_nb_elements: bool=..., value_types: list[type] | tuple[type, ...] | None=..., allowed_types: list[type] | tuple[type, ...] | None=...) -> Iterable[Any]Actual signature for en_US:
fake.pyiterable(nb_elements: int = 10, variable_nb_elements: bool = True, value_types: List[Type] | Tuple[Type, ...] | None = None, allowed_types: List[Type] | Tuple[Type, ...] | None = None) -> Iterable[Any]| Parameter | Purpose |
|---|---|
nb_elements | Number of elements to generate. |
variable_nb_elements | Allows count variation around its target. |
value_types | Python types of generated values. |
allowed_types | Python types the container may select. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pyiterable()pylist
Section titled “pylist”pylist generates Python values and containers for test attributes.
Orionis typed contract:
def pylist(nb_elements: int=..., variable_nb_elements: bool=..., value_types: list[type] | tuple[type, ...] | None=..., allowed_types: list[type] | tuple[type, ...] | None=...) -> list[Any]Actual signature for en_US:
fake.pylist(nb_elements: int = 10, variable_nb_elements: bool = True, value_types: List[Type] | Tuple[Type, ...] | None = None, allowed_types: List[Type] | Tuple[Type, ...] | None = None) -> List[Any]| Parameter | Purpose |
|---|---|
nb_elements | Number of elements to generate. |
variable_nb_elements | Allows count variation around its target. |
value_types | Python types of generated values. |
allowed_types | Python types the container may select. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pylist()pyobject
Section titled “pyobject”pyobject generates Python values and containers for test attributes.
Orionis typed contract:
def pyobject(object_type: type[bool | str | float | int | tuple | set | list | Iterable | dict] | None=...) -> bool | str | float | int | tuple | set | list | Iterable | dict | NoneActual signature for en_US:
fake.pyobject(object_type: Type[bool | str | float | int | tuple | set | list | Iterable | dict] | None = None) -> bool | str | float | int | tuple | set | list | Iterable | dict | None| Parameter | Purpose |
|---|---|
object_type | Python type of the generated object. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pyobject()pyset generates Python values and containers for test attributes.
Orionis typed contract:
def pyset(nb_elements: int=..., variable_nb_elements: bool=..., value_types: list[type] | tuple[type, ...] | None=..., allowed_types: list[type] | tuple[type, ...] | None=...) -> set[Any]Actual signature for en_US:
fake.pyset(nb_elements: int = 10, variable_nb_elements: bool = True, value_types: List[Type] | Tuple[Type, ...] | None = None, allowed_types: List[Type] | Tuple[Type, ...] | None = None) -> Set[Any]| Parameter | Purpose |
|---|---|
nb_elements | Number of elements to generate. |
variable_nb_elements | Allows count variation around its target. |
value_types | Python types of generated values. |
allowed_types | Python types the container may select. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pyset()pystr generates Python values and containers for test attributes.
Orionis typed contract:
def pystr(min_chars: int | None=..., max_chars: int=..., prefix: str=..., suffix: str=...) -> strActual signature for en_US:
fake.pystr(min_chars: int | None = None, max_chars: int = 20, prefix: str = '', suffix: str = '') -> str| Parameter | Purpose |
|---|---|
min_chars | Minimum string length. |
max_chars | Maximum string length. |
prefix | Generated string prefix. |
suffix | Generated string suffix. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pystr(min_chars=6, max_chars=12)pystrFormat
Section titled “pystrFormat”pystrFormat generates Python values and containers for test attributes.
Orionis typed contract:
def pystrFormat(string_format: str=..., letters: str=...) -> strActual signature for en_US:
fake.pystrFormat(string_format: str = '?#-###{{random_int}}{{random_letter}}', letters: str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') -> str| Parameter | Purpose |
|---|---|
string_format | Template with tokens for formatted text generation. |
letters | Alphabetic character population. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pystrFormat()pystruct
Section titled “pystruct”pystruct generates Python values and containers for test attributes.
Orionis typed contract:
def pystruct(count: int=..., value_types: list[type] | tuple[type, ...] | None=..., allowed_types: list[type] | tuple[type, ...] | None=...) -> tuple[list, dict, dict]Actual signature for en_US:
fake.pystruct(count: int = 10, value_types: List[Type] | Tuple[Type, ...] | None = None, allowed_types: List[Type] | Tuple[Type, ...] | None = None) -> Tuple[List, Dict, Dict]| Parameter | Purpose |
|---|---|
count | Number of items or structures produced by the provider. |
value_types | Python types of generated values. |
allowed_types | Python types the container may select. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pystruct()pytimezone
Section titled “pytimezone”pytimezone generates dates, times and intervals for temporal fixtures.
Orionis typed contract:
def pytimezone(*args: Any, **kwargs: Any) -> datetime.tzinfo | NoneActual signature for en_US:
fake.pytimezone(*args: Any, **kwargs: Any) -> datetime.tzinfo | None| Parameter | Purpose |
|---|---|
args | Positional arguments for generated Python types. |
kwargs | Keyword arguments for generated Python types. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pytimezone()pytuple
Section titled “pytuple”pytuple generates Python values and containers for test attributes.
Orionis typed contract:
def pytuple(nb_elements: int=..., variable_nb_elements: bool=..., value_types: list[type] | tuple[type, ...] | None=..., allowed_types: list[type] | tuple[type, ...] | None=...) -> tuple[Any, ...]Actual signature for en_US:
fake.pytuple(nb_elements: int = 10, variable_nb_elements: bool = True, value_types: List[Type] | Tuple[Type, ...] | None = None, allowed_types: List[Type] | Tuple[Type, ...] | None = None) -> Tuple[Any, ...]| Parameter | Purpose |
|---|---|
nb_elements | Number of elements to generate. |
variable_nb_elements | Allows count variation around its target. |
value_types | Python types of generated values. |
allowed_types | Python types the container may select. |
Verified availability: 110 locales. Example locales: en_US, es_CO, es_ES, am_ET, ar_AA, ar_AE, ar_BH, ar_DZ.
fake = SampleFactory(locale="en_US", seed=7).fakevalue = fake.pytuple()