Locale de_CH

faker.providers.person

class faker.providers.person.de_CH.Provider(generator)

Bases: faker.providers.person.Provider

first_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name()
...
'Leonor'
'Sanja'
'Erkan'
'Ilir'
'Laura'
first_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Katalin'
'Sónia'
'Géraldine'
'Samira'
'Yolande'
first_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Ernest'
'Constantin'
'François'
'Helmut'
'Mael'
first_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Leonor'
'Sanja'
'Erkan'
'Ilir'
'Laura'
language_name()

Generate a random i18n language name (e.g. English).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.language_name()
...
'Swahili'
'Sardinian'
'Georgian'
'French'
'Ganda'
last_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name()
...
'Stucki'
'Schweizer'
'Jäggi'
'Gasser'
'Lehmann'
last_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Stucki'
'Schweizer'
'Jäggi'
'Gasser'
'Lehmann'
last_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Stucki'
'Schweizer'
'Jäggi'
'Gasser'
'Lehmann'
last_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Stucki'
'Schweizer'
'Jäggi'
'Gasser'
'Lehmann'
name()

:example ‘John Doe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Sónia Jäggi Gasser'
'Florim Sigrist'
'Cornelius Meister'
'Prof. Ilija Schwarz'
'Gaetano Wegmann'
name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Sónia Jäggi Gasser'
'Florim Sigrist'
'Cornelius Meister'
'Prof. Ilija Schwarz'
'Gaetano Wegmann'
name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Sónia Jäggi Gasser'
'Florim Sigrist'
'Cornelius Meister'
'Prof. Ilija Schwarz'
'Gaetano Wegmann'
name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Sónia Jäggi Gasser'
'Florim Sigrist'
'Cornelius Meister'
'Prof. Ilija Schwarz'
'Gaetano Wegmann'
prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
'Prof.'
'Prof.'
'Dr.'
'Dr.'
'Prof.'
prefix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
'Prof.'
'Prof.'
'Dr.'
'Dr.'
'Prof.'
prefix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
'Prof.'
'Prof.'
'Dr.'
'Dr.'
'Prof.'
prefix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
'Prof.'
'Prof.'
'Dr.'
'Dr.'
'Prof.'
suffix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix()
...
''
''
''
''
''
suffix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_female()
...
''
''
''
''
''
suffix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_male()
...
''
''
''
''
''
suffix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_nonbinary()
...
''
''
''
''
''

faker.providers.ssn

class faker.providers.ssn.de_CH.Provider(generator)

Bases: faker.providers.ssn.fr_CH.Provider

ssn()
Returns a 13 digits Swiss SSN named AHV (German) or
AVS (French and Italian)

See: http://www.bsv.admin.ch/themen/ahv/00011/02185/

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ssn()
...
'756.6902.4351.88'
'756.5327.1068.40'
'756.4186.5239.04'
'756.5694.7138.25'
'756.0897.5362.19'
vat_id()
Returns:Swiss UID number
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.vat_id()
...
'CHE660487649'
'CHE759382428'
'CHE194892412'
'CHE157815650'
'CHE938778409'