Locale fr_CH

faker.providers.address

class faker.providers.address.fr_CH.Provider(generator)

Bases: faker.providers.address.Provider

address()

:example ‘791 Crist Parks, Sashabury, IL 86039-9874’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.address()
...
'chemin Paschoud 56\n8593 Broquet-sur-Curdy'
'chemin de Privet\n3411 Fonjallaz (SG)'
'chemin Olivier Rey 97\n5080 Julliard'
'chemin Roland Evéquoz 4\n4328 Boechat-près-Beurret'
'rue Camille Rey 91\n6839 Saudan-sur-de Dardel'
administrative_unit()

Randomly returns a Swiss canton name. :example ‘Vaud’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.administrative_unit()
...
'Neuchâtel'
'Zoug'
'Nidwald'
'Appenzell Rhodes-Intérieures'
'Glaris'
building_number()

:example ‘791’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'16'
'88'
'84'
'49'
'324'
canton()

Randomly returns a swiss canton (‘Abbreviated’ , ‘Name’). :example (‘VD’ . ‘Vaud’)

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.canton()
...
('NE', 'Neuchâtel')
('ZG', 'Zoug')
('NW', 'Nidwald')
('AI', 'Appenzell Rhodes-Intérieures')
('GL', 'Glaris')
canton_code()

Randomly returns a Swiss canton code. :example ‘VD’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.canton_code()
...
'NE'
'ZG'
'NW'
'AI'
'GL'
canton_name()

Randomly returns a Swiss canton name. :example ‘Vaud’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.canton_name()
...
'Neuchâtel'
'Zoug'
'Nidwald'
'Appenzell Rhodes-Intérieures'
'Glaris'
city()

:example ‘Sashabury’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'Masseron-des-Bois'
'Paschoud am Albis'
'Diesbach am Albis'
'Sansonnens-Dessus'
'Broquet-sur-Curdy'
city_prefix()

:example ‘rue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_prefix()
...
'Ober'
'Ober'
'Saint '
'San '
'Unter'
city_suffix()

:example ‘town’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
' am See'
' am See'
'-des-Bois'
'-Dessous'
' an der Aare'
country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Tonga'
'Iran'
'Slovénie'
'Venezuela'
'Kenya'
country_code(representation='alpha-2')
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_code()
...
'MV'
'PS'
'NL'
'BB'
'IL'
current_country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country()
...
'Switzerland'
'Switzerland'
'Switzerland'
'Switzerland'
'Switzerland'
current_country_code()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.current_country_code()
...
'CH'
'CH'
'CH'
'CH'
'CH'
postcode()

:example 86039-9874

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'7604'
'9764'
'8593'
'9242'
'2948'
street_address()

:example ‘791 Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'rue Sébastien Paschoud 56'
'boulevard Paul Pachoud 34'
'chemin de Privet'
'rue de Dubey 2'
'avenue Vanessa Boillat 66'
street_name()

:example ‘Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'avenue Christophe Cossy'
'avenue de Maire'
'avenue Eliane Sansonnens'
'boulevard Broquet'
'rue Henri Vienne'
street_prefix()

:example ‘rue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_prefix()
...
'avenue'
'avenue'
'rue'
'chemin'
'boulevard'
street_suffix()

:example ‘Avenue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_suffix()
...
'Street'
'Street'
'Street'
'Street'
'Street'

faker.providers.bank

class faker.providers.bank.fr_CH.Provider(generator)

Bases: faker.providers.bank.de_CH.Provider

Implement bank provider for fr_CH locale.

There is no difference from the de_CH implementation.

bank_country()

Generate the bank provider’s ISO 3166-1 alpha-2 country code.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bank_country()
...
'CH'
'CH'
'CH'
'CH'
'CH'
bban()

Generate a Basic Bank Account Number (BBAN).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bban()
...
'66048764759382421'
'94892411578156593'
'87784080160975351'
'39332871158714841'
'85839894719659342'
iban()

Generate an International Bank Account Number (IBAN).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.iban()
...
'CH8566048764759382421'
'CH1694892411578156593'
'CH2487784080160975351'
'CH3639332871158714841'
'CH3285839894719659342'
swift(length=None, primary=None, use_dataset=False)

Generate a SWIFT code.

SWIFT codes, reading from left to right, are composed of a 4 alphabet character bank code, a 2 alphabet character country code, a 2 alphanumeric location code, and an optional 3 alphanumeric branch code. This means SWIFT codes can only have 8 or 11 characters, so the value of length can only be None or the integers 8 or 11. If the value is None, then a value of 8 or 11 will randomly be assigned.

Because all 8-digit SWIFT codes already refer to the primary branch or office, the primary argument only has an effect if the value of length is 11. If primary is True and length is 11, the 11-digit SWIFT codes generated will always end in 'XXX' to denote that they belong to primary branches/offices.

For extra authenticity, localized providers may opt to include SWIFT bank codes, location codes, and branch codes used in their respective locales. If use_dataset is True, this method will generate SWIFT codes based on those locale-specific codes if included. If those codes were not included, then it will behave as if use_dataset were False, and in that mode, all those codes will just be randomly generated as per the specification.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift()
...
'YNBICH65ZT4'
'SGQECHSIGQ8'
'JDXCCHV4'
'LNKTCHN9'
'OQIBCH9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=8)
...
'MYNBCHQ6'
'PMZJCH4W'
'SGQECHSI'
'YDTZCHQ8'
'WZTECHTG'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=8, use_dataset=True)
...
'MYNBCHQ6'
'PMZJCH4W'
'SGQECHSI'
'YDTZCHQ8'
'WZTECHTG'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11)
...
'MYNBCHQ65ZT'
'PLSGCH6ISIG'
'TZIRCHJTGEV'
'PRDLCH1UN94'
'OQIBCH9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, primary=True)
...
'MYNBCHQ6XXX'
'PMZJCH4WXXX'
'SGQECHSIXXX'
'YDTZCHQ8XXX'
'WZTECHTGXXX'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, use_dataset=True)
...
'MYNBCHQ65ZT'
'PLSGCH6ISIG'
'TZIRCHJTGEV'
'PRDLCH1UN94'
'OQIBCH9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift(length=11, primary=True, use_dataset=True)
...
'MYNBCHQ6XXX'
'PMZJCH4WXXX'
'SGQECHSIXXX'
'YDTZCHQ8XXX'
'WZTECHTGXXX'
swift11(primary=None, use_dataset=False)

Generate an 11-digit SWIFT code.

This method uses swift() under the hood with the length argument set to 11. If primary is set to True, the SWIFT code will always end with 'XXX'. All 11-digit SWIFT codes use this convention to refer to the primary branch/office.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift11()
...
'MYNBCHQ65ZT'
'PLSGCH6ISIG'
'TZIRCHJTGEV'
'PRDLCH1UN94'
'OQIBCH9AFZA'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift11(use_dataset=True)
...
'MYNBCHQ65ZT'
'PLSGCH6ISIG'
'TZIRCHJTGEV'
'PRDLCH1UN94'
'OQIBCH9AFZA'
swift8(use_dataset=False)

Generate an 8-digit SWIFT code.

This method uses swift() under the hood with the length argument set to 8 and with the primary argument omitted. All 8-digit SWIFT codes already refer to the primary branch/office.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift8()
...
'MYNBCHQ6'
'PMZJCH4W'
'SGQECHSI'
'YDTZCHQ8'
'WZTECHTG'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.swift8(use_dataset=True)
...
'MYNBCHQ6'
'PMZJCH4W'
'SGQECHSI'
'YDTZCHQ8'
'WZTECHTG'

faker.providers.company

class faker.providers.company.fr_CH.Provider(generator)

Bases: faker.providers.company.fr_FR.Provider

bs()

:example ‘integrate extensible convergence’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.bs()
...
'iterate integrated e-markets'
'integrate back-end mindshare'
'synthesize wireless content'
'syndicate synergistic applications'
'productize killer mindshare'
catch_phrase()

:example ‘integrate extensible convergence’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase()
...
'Le pouvoir de rouler en toute tranquilité'
"Le pouvoir d'innover naturellement"
"L'avantage de changer à la pointe"
"L'assurance d'évoluer de manière sûre"
"L'avantage d'innover à la pointe"
catch_phrase_attribute()

Returns a random catch phrase attribute.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase_attribute()
...
'en toute sécurité'
'autrement'
'de manière sûre'
'autrement'
'de manière efficace'
catch_phrase_noun()

Returns a random catch phrase noun.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase_noun()
...
'le pouvoir'
'le pouvoir'
'la sécurité'
"l'assurance"
'la possibilité'
catch_phrase_verb()

Returns a random catch phrase verb.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.catch_phrase_verb()
...
"d'atteindre vos buts"
"d'atteindre vos buts"
'de rouler'
"d'innover"
'de concrétiser vos projets'
company()

:example ‘Acme Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company()
...
'Masseron'
'Cossy Sàrl.'
'Diesbach'
'Grand'
'Pachoud Broquet Sàrl.'
company_suffix()

:example ‘Ltd’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_suffix()
...
'Sàrl.'
'Sàrl.'
'SA'
'Sàrl.'
'Sàrl.'
ide()

Generates a IDE number (9 digits). http://www.bfs.admin.ch/bfs/portal/fr/index/themen/00/05/blank/03/02.html

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ide()
...
'CHE-690.243.519'
'CHE-753.412.801'
'CHE-942.705.619'
'CHE-815.324.971'
'CHE-794.086.521'
idi()

Generates a IDE number (9 digits). http://www.bfs.admin.ch/bfs/portal/fr/index/themen/00/05/blank/03/02.html

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.idi()
...
'CHE-690.243.519'
'CHE-753.412.801'
'CHE-942.705.619'
'CHE-815.324.971'
'CHE-794.086.521'
siren()

Generates a siren number (9 digits).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.siren()
...
'660 487 647'
'593 824 219'
'489 241 157'
'815 659 387'
'784 080 160'
siret(max_sequential_digits=2)

Generates a siret number (14 digits). It is in fact the result of the concatenation of a siren number (9 digits), a sequential number (4 digits) and a control number (1 digit) concatenation. If $max_sequential_digits is invalid, it is set to 2. :param max_sequential_digits The maximum number of digits for the sequential number (> 0 && <= 4).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.siret()
...
'604 876 475 00499'
'824 219 489 00272'
'115 781 565 00399'
'387 784 080 00811'
'609 753 513 00929'
uid()

Generates a IDE number (9 digits). http://www.bfs.admin.ch/bfs/portal/fr/index/themen/00/05/blank/03/02.html

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uid()
...
'CHE-690.243.519'
'CHE-753.412.801'
'CHE-942.705.619'
'CHE-815.324.971'
'CHE-794.086.521'

faker.providers.internet

class faker.providers.internet.fr_CH.Provider(generator)

Bases: faker.providers.internet.Provider

ascii_company_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_company_email()
...
'cmasseron@paschoud.ch'
'ediesbach@sansonnens.net'
'aliciabroquet@vienne.com'
'hugo15@robert.com'
'laura59@rey.org'
ascii_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_email()
...
'qbarman@vtxnet.ch'
'marianne59@bluewin.ch'
'louis19@privet.com'
'beuchatchristine@vtxnet.ch'
'laura59@rey.org'
ascii_free_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_free_email()
...
'cmasseron@romandie.com'
'ymaire@romandie.com'
'lgrand@bluewin.ch'
'aliciabroquet@hotmail.fr'
'simone92@romandie.com'
ascii_safe_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_safe_email()
...
'cmasseron@example.com'
'ymaire@example.com'
'lgrand@example.org'
'aliciabroquet@example.org'
'simone92@example.com'
company_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_email()
...
'cmasseron@paschoud.ch'
'ediesbach@sansonnens.net'
'aliciabroquet@vienne.com'
'hugo15@robert.com'
'laura59@rey.org'
dga(year=None, month=None, day=None, tld=None, length=None)

Generates a domain name by given date https://en.wikipedia.org/wiki/Domain_generation_algorithm

Return type:str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.dga()
...
'hxqvaffcmfsccynscisxeajjagjahtnfcmfsccynscisxeajjagjahtnfcmfscc.org'
'meydkrgdcvulautulqvjofrrnbjkfmvrewtpfttqcjafdhxckmyfamohcpnldug.org'
'iiulfpgbvqcdaehnqkbxmaqgkykorlxnwy.net'
'cpyhexmtvewxpwiiaxtgdfajuhbsyaaykvgkgreki.com'
'uqniukqjckmjabijnuqho.com'
domain_name(levels=1)

Produce an Internet domain name with the specified number of subdomain levels.

>>> domain_name()
nichols-phillips.com
>>> domain_name(2)
williamson-hopkins.jackson.com
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.domain_name()
...
'masseron.com'
'paschoud.ch'
'diesbach.ch'
'sansonnens.net'
'curdy.org'
domain_word()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.domain_word()
...
'masseron'
'cossy'
'diesbach'
'grand'
'pachoud'
email(domain=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.email()
...
'qbarman@vtxnet.ch'
'marianne59@bluewin.ch'
'louis19@privet.com'
'beuchatchristine@vtxnet.ch'
'laura59@rey.org'
free_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.free_email()
...
'cmasseron@romandie.com'
'ymaire@romandie.com'
'lgrand@bluewin.ch'
'aliciabroquet@hotmail.fr'
'simone92@romandie.com'
free_email_domain()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.free_email_domain()
...
'sunrise.ch'
'sunrise.ch'
'gmail.com'
'romandie.com'
'vtxnet.ch'
hostname(levels=1)

Produce a hostname with specified number of subdomain levels.

>>> hostname()
db-01.nichols-phillips.com
>>> hostname(0)
laptop-56
>>> hostname(2)
web-12.williamson-hopkins.jackson.com
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.hostname()
...
'web-66.cossy.ch'
'web-47.sansonnens.net'
'lt-24.boichat.com'
'desktop-11.mottet.com'
'desktop-65.rey.org'
http_method()

Returns random HTTP method https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

Return type:str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.http_method()
...
'OPTIONS'
'OPTIONS'
'GET'
'DELETE'
'PATCH'
image_url(width=None, height=None)

Returns URL to placeholder image Example: http://placehold.it/640x480

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.image_url()
...
'https://www.lorempixel.com/788/861'
'https://placeimg.com/530/995/any'
'https://placekitten.com/621/976'
'https://placekitten.com/447/285'
'https://placekitten.com/286/194'
ipv4(network=False, address_class=None, private=None)

Returns a random IPv4 address or network with a valid CIDR.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
  • private – Public or private
Returns:

IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4()
...
'171.174.170.81'
'95.25.112.121'
'51.105.121.194'
'195.110.164.126'
'141.250.247.54'
ipv4_network_class()

Returns a IPv4 network class ‘a’, ‘b’ or ‘c’.

Returns:IPv4 network class
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_network_class()
...
'b'
'b'
'a'
'b'
'c'
ipv4_private(network=False, address_class=None)

Returns a private IPv4.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
Returns:

Private IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_private()
...
'172.29.117.82'
'10.248.203.131'
'172.25.180.188'
'172.22.253.123'
'192.168.71.140'
ipv4_public(network=False, address_class=None)

Returns a public IPv4 excluding private blocks.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
Returns:

Public IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_public()
...
'166.186.169.69'
'111.198.92.30'
'168.155.75.206'
'141.250.247.54'
'212.120.204.37'
ipv6(network=False)

Produce a random IPv6 address or network with a valid CIDR

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv6()
...
'e3e7:682:c209:4cac:629f:6fbf:d82c:7cd'
'f728:b4fa:4248:5e3a:a5d:2f35:6baa:9455'
'eb11:67b3:67a9:c378:7c65:c1e6:82e2:e662'
'f7c1:bd87:4da5:e709:d471:3d61:c8a7:639'
'e443:df78:9558:867f:5ba9:1fb0:7a02:4204'
mac_address()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.mac_address()
...
'c5:d7:14:84:f8:cf'
'9b:f4:b7:6f:47:90'
'47:30:80:4b:9e:32'
'25:a9:f1:33:b5:de'
'a1:68:f4:e2:85:1f'
port_number(is_system=False, is_user=False, is_dynamic=False)

Returns a network port number https://tools.ietf.org/html/rfc6335

Parameters:
  • is_system – System or well-known ports
  • is_user – User or registered ports
  • is_dynamic – Dynamic / private / ephemeral ports
Return type:

int

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.port_number()
...
50494
55125
5306
33936
63691
safe_domain_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_domain_name()
...
'example.com'
'example.com'
'example.org'
'example.com'
'example.net'
safe_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_email()
...
'cmasseron@example.com'
'ymaire@example.com'
'lgrand@example.org'
'aliciabroquet@example.org'
'simone92@example.com'
slug(value=None)

Django algorithm

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.slug()
...
'molestiae-nihil'
'facilis-quaerat'
'necessitatibus'
'perferendis-magnam'
'esse-quae-deserunt'
tld()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.tld()
...
'ch'
'ch'
'com'
'org'
'ch'
uri()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri()
...
'https://www.paschoud.ch/explore/posts/register/'
'http://www.broquet.com/faq.htm'
'http://beuchat.ch/main/tag/tags/main.asp'
'https://rapraz.com/list/blog/posts/about/'
'https://evequoz.net/'
uri_extension()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_extension()
...
'.php'
'.php'
'.html'
'.htm'
'.asp'
uri_page()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_page()
...
'author'
'category'
'privacy'
'category'
'index'
uri_path(deep=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_path()
...
'posts/tag'
'explore/tag'
'explore/category'
'blog'
'category'
url(schemes=None)
Parameters:schemes – a list of strings to use as schemes, one will chosen randomly.

If None, it will generate http and https urls. Passing an empty list will result in schemeless url generation like “://domain.com”.

Returns:a random url string.
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.url()
...
'https://cossy.ch/'
'https://sansonnens.net/'
'http://boichat.com/'
'https://www.fonjallaz.com/'
'https://vallelian.net/'
user_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.user_name()
...
'cmasseron'
'odette76'
'marianne59'
'nicolebroquet'
'louis19'

faker.providers.job

class faker.providers.job.fr_CH.Provider(generator)

Bases: faker.providers.job.Provider

job()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.job()
...
'Expert-comptable diplômé'
'Technicien du film avec brevet fédéral'
"Gestionnaire d'entreprise diplômé secteur automobile"
'Aide-mouleur AFP'
'Dessinateur-constructeur industriel CFC'

faker.providers.person

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

Bases: faker.providers.person.Provider

first_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name()
...
'Fabienne'
'Josiane'
'Christophe'
'Sébastien'
'Odette'
first_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Marguerite'
'Mathilde'
'Aurélie'
'Jacqueline'
'Simone'
first_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Nicolas'
'Pascal'
'Arthur'
'Kevin'
'Stéphane'
first_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Fabienne'
'Josiane'
'Christophe'
'Sébastien'
'Odette'
language_name()

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

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.language_name()
...
'Luba-Katanga'
'Malay'
'Aymara'
'Interlingue'
'Quechua'
last_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name()
...
'Jacot-Guillarmod'
'Masseron'
'Barman'
'Cossy'
'Paschoud'
last_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Jacot-Guillarmod'
'Masseron'
'Barman'
'Cossy'
'Paschoud'
last_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Jacot-Guillarmod'
'Masseron'
'Barman'
'Cossy'
'Paschoud'
last_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Jacot-Guillarmod'
'Masseron'
'Barman'
'Cossy'
'Paschoud'
name()

:example ‘John Doe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Marguerite Masseron-Barman'
'Stéphane Müller'
'Lucas Muriset-Grand'
'Fabienne Pachoud'
'Loïc Broquet'
name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Marguerite Masseron-Barman'
'Simone Müller'
'Laetitia Muriset'
'Yvette Comman'
'Céline Curdy'
name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Nicolas Masseron-Barman'
'Stéphane Müller'
'Lucas Muriset'
'Jean Pachoud'
'Loïc Broquet'
name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Marguerite Masseron-Barman'
'Stéphane Müller'
'Lucas Muriset-Grand'
'Fabienne Pachoud'
'Loïc Broquet'
prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
''
''
''
''
''
prefix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
''
''
''
''
''
prefix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
''
''
''
''
''
prefix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
''
''
''
''
''
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.phone_number

class faker.providers.phone_number.fr_CH.Provider(generator)

Bases: faker.providers.phone_number.Provider

country_calling_code()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_calling_code()
...
'+687'
'+595'
'+880'
'+964'
'+41'
msisdn()

https://en.wikipedia.org/wiki/MSISDN

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.msisdn()
...
'6048764759382'
'2194892411578'
'5659387784080'
'6097535139332'
'1158714841858'
phone_number()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.phone_number()
...
'0901 660 487'
'+41 (0)64 759 38 24'
'+41 61 948 92 41'
'091 578 15 65'
'053 877 84 08'

faker.providers.ssn

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

Bases: faker.providers.ssn.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'