Language sv_SE¶
faker.providers.address
¶
fake.latitude()
# Decimal('17.986796')
fake.street_name()
# u'Villav\xe4gen'
fake.address()
# u'Idrottsgatan 191\n87232 Sundsvall'
fake.street_address()
# u'Parkstigen 183'
fake.postcode()
# u'08476'
fake.country_code(representation="alpha-2")
# u'NA'
fake.longitude()
# Decimal('112.891161')
fake.country()
# u'Swaziland'
fake.city_name()
# u'Kalmar'
fake.street_prefix()
# u'Kvarn'
fake.street_suffix()
# u'v\xe4gen'
fake.geo_coordinate(center=None, radius=0.001)
# Decimal('0.791587')
fake.city_suffix()
# u'Ville'
fake.building_number()
# u'67'
fake.city()
# u'Varberg'
fake.state()
# u'S\xf6dermanlands l\xe4n\xd6sterg\xf6tlands l\xe4n'
faker.providers.automotive
¶
fake.license_plate()
# u'RG-1395'
faker.providers.bank
¶
fake.bban()
# 'RPAT1756272289582'
fake.bank_country()
# 'GB'
fake.iban()
# 'GB17YZOA1292929863822'
faker.providers.barcode
¶
fake.ean(length=13)
# u'9265423848351'
fake.ean13()
# u'6087885314747'
fake.ean8()
# u'08131669'
faker.providers.color
¶
fake.rgb_css_color()
# u'rgb(129,36,196)'
fake.color_name()
# u'DarkKhaki'
fake.rgb_color()
# u'141,176,249'
fake.safe_hex_color()
# u'#cc8800'
fake.safe_color_name()
# u'yellow'
fake.hex_color()
# u'#fc1baa'
faker.providers.company
¶
fake.company()
# u'Hermansson Jansson HB'
fake.company_suffix()
# u'AB'
fake.catch_phrase()
# u'User-centric human-resource core'
fake.bs()
# u'matrix leading-edge systems'
faker.providers.credit_card
¶
fake.credit_card_security_code(card_type=None)
# u'756'
fake.credit_card_provider(card_type=None)
# u'Diners Club / Carte Blanche'
fake.credit_card_full(card_type=None)
# u'VISA 19 digit\nViola Blomberg\n4603384862036720163 05/25\nCVC: 804\n'
fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '01/26'
fake.credit_card_number(card_type=None)
# u'5330237995322805'
faker.providers.currency
¶
fake.cryptocurrency_code()
# 'VTC'
fake.currency_code()
# 'TRY'
fake.currency_name()
# 'Iranian rial'
fake.cryptocurrency_name()
# 'XEM'
fake.cryptocurrency()
# ('PPC', 'Peercoin')
fake.currency()
# ('MKD', 'Macedonian denar')
faker.providers.date_time
¶
fake.future_datetime(end_date="+30d", tzinfo=None)
# datetime.datetime(2018, 9, 12, 22, 53, 17)
fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None)
# <generator object time_series at 0xffffa9d3b640>
fake.date_between_dates(date_start=None, date_end=None)
# datetime.date(2018, 8, 16)
fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime.datetime(2009, 9, 1, 8, 8, 36)
fake.date_this_decade(before_today=True, after_today=False)
# datetime.date(2014, 2, 24)
fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 8, 5, 5, 47, 2)
fake.past_date(start_date="-30d", tzinfo=None)
# datetime.date(2018, 7, 22)
fake.day_of_week()
# 'Wednesday'
fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2010, 2, 5, 0, 40, 50)
fake.date_between(start_date="-30y", end_date="today")
# datetime.date(2018, 3, 6)
fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2014, 8, 22, 10, 6, 10)
fake.date(pattern="%Y-%m-%d", end_datetime=None)
# '1988-08-09'
fake.am_pm()
# 'PM'
fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None)
# datetime.datetime(2018, 8, 16, 10, 58, 44)
fake.date_object(end_datetime=None)
# datetime.date(1985, 6, 7)
fake.date_this_year(before_today=True, after_today=False)
# datetime.date(2018, 6, 6)
fake.iso8601(tzinfo=None, end_datetime=None)
# '1990-02-02T17:25:52'
fake.future_date(end_date="+30d", tzinfo=None)
# datetime.date(2018, 9, 3)
fake.date_this_century(before_today=True, after_today=False)
# datetime.date(2015, 12, 7)
fake.month()
# '06'
fake.year()
# '1982'
fake.day_of_month()
# '31'
fake.unix_time(end_datetime=None, start_datetime=None)
# 906151901
fake.timezone()
# u'Asia/Singapore'
fake.century()
# u'XIII'
fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115)
# datetime.date(1993, 2, 20)
fake.time_object(end_datetime=None)
# datetime.time(11, 26, 52)
fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None)
# datetime.datetime(2018, 1, 18, 20, 1, 56)
fake.date_time(tzinfo=None, end_datetime=None)
# datetime.datetime(2008, 5, 5, 17, 21, 15)
fake.time(pattern="%H:%M:%S", end_datetime=None)
# '14:27:07'
fake.date_this_month(before_today=True, after_today=False)
# datetime.date(2018, 8, 7)
fake.past_datetime(start_date="-30d", tzinfo=None)
# datetime.datetime(2018, 7, 18, 7, 57, 58)
fake.month_name()
# 'March'
fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None)
# datetime.datetime(510, 9, 12, 3, 26, 40)
fake.time_delta(end_datetime=None)
# datetime.timedelta(2489, 12426)
faker.providers.file
¶
fake.unix_device(prefix=None)
# u'/dev/sds'
fake.mime_type(category=None)
# u'audio/vnd.rn-realaudio'
fake.file_path(depth=1, category=None, extension=None)
# u'/quis/placeat.csv'
fake.unix_partition(prefix=None)
# u'/dev/sdh6'
fake.file_name(category=None, extension=None)
# u'magnam.css'
fake.file_extension(category=None)
# u'flac'
faker.providers.internet
¶
fake.ascii_free_email(*args, **kwargs)
# 'wlarsson@spray.se'
fake.image_url(width=None, height=None)
# u'https://placeholdit.imgix.net/~text?txtsize=55&txt=32x157&w=32&h=157'
fake.tld()
# u'com'
fake.email(*args, **kwargs)
# u'lgustafsson@swipnet.se'
fake.url(schemes=None)
# u'http://nyberg.org/'
fake.ipv4_private(network=False, address_class=None)
# '192.168.118.102'
fake.user_name(*args, **kwargs)
# u'oaxelsson'
fake.uri_extension()
# u'.php'
fake.uri_page()
# u'register'
fake.free_email_domain(*args, **kwargs)
# u'googlemail.com'
fake.safe_email(*args, **kwargs)
# u'omalm@example.org'
fake.ascii_email(*args, **kwargs)
# 'sivcarlsson@swipnet.se'
fake.ipv4_network_class()
# u'c'
fake.ipv4_public(network=False, address_class=None)
# '171.20.244.134'
fake.ascii_company_email(*args, **kwargs)
# 'mlundstrom@johansson.org'
fake.domain_name(*args, **kwargs)
# u'karlsson.com'
fake.ipv4(network=False, address_class=None, private=None)
# '204.72.220.72'
fake.domain_word(*args, **kwargs)
# u'vikstrom'
fake.slug(*args, **kwargs)
# u'dolorum-beatae'
fake.uri_path(deep=None)
# u'list/main/app'
fake.company_email(*args, **kwargs)
# u'vgunnarsson@carlsson.org'
fake.uri()
# u'https://jansson.org/explore/tag/category/search.php'
fake.ipv6(network=False)
# '35a4:913b:ed2a:8d99:2e05:6938:6c04:f45'
fake.free_email(*args, **kwargs)
# u'jonasjohansson@gmail.com'
fake.ascii_safe_email(*args, **kwargs)
# 'mikaelaronsson@example.com'
fake.mac_address()
# u'07:4b:8b:50:e1:7d'
faker.providers.isbn
¶
fake.isbn10(separator="-")
# u'1-356-32076-7'
fake.isbn13(separator="-")
# u'978-1-879347-47-2'
faker.providers.job
¶
fake.job()
# 'Health visitor'
faker.providers.lorem
¶
fake.text(max_nb_chars=200, ext_word_list=None)
# u'Animi officia quasi beatae maiores ratione ut.\nNon molestiae deleniti voluptatum. Tempore aut minus dicta.\nDolores aspernatur exercitationem.'
fake.paragraphs(nb=3, ext_word_list=None)
# [ u'Hic neque exercitationem expedita et. Dicta aspernatur commodi minus sed dolore perferendis.',
# u'Voluptatum doloremque incidunt dolorem dignissimos quidem. Deleniti esse velit officiis. Ab asperiores sit veniam tenetur qui autem.',
# u'Porro a sapiente aspernatur optio maiores nam. Dolore reiciendis dolorum mollitia corrupti maiores.']
fake.words(nb=3, ext_word_list=None)
# [u'soluta', u'voluptates', u'quibusdam']
fake.sentences(nb=3, ext_word_list=None)
# [ u'Assumenda recusandae minima labore fugiat ullam.',
# u'Cupiditate aliquam inventore ipsam.',
# u'Non fugit repellendus magnam mollitia quo.']
fake.word(ext_word_list=None)
# u'dolorem'
fake.paragraph(nb_sentences=3, variable_nb_sentences=True, ext_word_list=None)
# u'Debitis dicta impedit animi excepturi excepturi non. Recusandae temporibus laboriosam delectus iure nostrum a. Error rerum officia suscipit non.'
fake.sentence(nb_words=6, variable_nb_words=True, ext_word_list=None)
# u'Neque dolore iure id iste dicta.'
faker.providers.misc
¶
fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True)
# u'VnO6Okhp#L'
fake.locale()
# u'ik_CA'
fake.binary(length=1048576)
# bytearray(b':\xb5V\xa3\xb4\x16p\x13>\'d\xfe.\x9cgx\xcf\x15\xe8\xbc\xf7\x0f#\xf7e\xde\ro\x1bt\x96\xa4%F\xc4#6\xb8\xfd\x99\x98\x17L\xd3-\xce\x1fp\xf6\x8cW\xdf\x82k.\xa8<vOk\xfb\xb2_\xa8\x9b\xc6v$\xf3\xa3\x13\x82^\x84\x82\xc4\x0c:\xd0\xa8\xa5\x0eW<\t\xe58\xb5\x02/\x92\x16\xba\x10\x95\xd5\xa4\xff\xe7\xd2\xae\xb5<\xf2\xdcP\x06\x12\xb0\xcf\x97\xf1\xd7\xc3;Z9\xb3\xa7\xfa\xa7\x1dN\x1e1\xe7\'\t\xe6\x1c\xfc\xc1P\x9a\x18\xda\xbe%\x8a\xcb\xc2\xaa3\x87,$\xce\xac,\xcd\x87\x05\x0c\xe6\xa3\xdaq\xf3\xf8\xcfYS\xfe\xe0D\n%^)\nW\x85+\xfb\xd0\xe8\x05\x13yE z\xa3+\r\xce\xc6y\xf5N\xfb%+\x88s\xd43<\xe6?U<v\x1a\x90\xa8YG\xecc\x8d\\Sc$\x92\x025\xca\t\xe6;t\xd0\x06k\xd8\x82\xa9-h\x9c\xbc6\x08\x90\xeb\x0f)\x06\xba\'\xd9\x1d\xa7\xe3\x8c\x98\xbd\x00\x86\xb6\x17\x84\xea\xe9\xda\xb1\x14@\x14\xf2UBz\x9c\xbeu\xf6d\x83\x84 i=\x05\xaf\x06n\xbc\x17R\x97f\xd8\x83\xe5\x10\tz|\xfd\x08\x06k\xcd\x8d\x8a\x03\xfen\x94\xc2\x81\x8e\x1eT\xb4\x81\xa0k\xa4t3\'\xaf\xb0\x9f\x04\xa8\xa2 T\x9a;B~j\xfe\x02\xa5=a\xe0\xf9\xd6t\x01\xb4\xada\\Ij09xK\xa1=\xd7\x11\xe5\x90J\x8a$k\xa1\xec\xcbV\xf9\x07.\xd6\xe5\xd0\x10\x9f_{\xdf\xd9K9\xf7\x14{\x91l\xa9S\xbdt\x87\xf9\x16u\xff\x0eP\xee\xbf\t\x0f\xdb@?,\xe2!\x81\xb9\xd7\x1e\xb8>\xddZfv\x88x\xfa\xf6N\xd5\xd5\x03\xa4T_i\x04\x1a\xd7\x17:\x13\xce\x11z\x06y\x19nU\x8e5k\\xlt\x88\x83\x96W\xc3\xfcM@ig\xbfN\xcf\xa4\xf9!Xr\xf0\x9a\xb3\x1a!\xcfT0\r\xa7;\xffU\xd8\x1fg} qm\x80\xd9\xbe}j\x10\x9fr\xdc@\xdd+\x1b\x9a\xf0\xc0DTGf?\xfa5kQF\xe8.\xc8_\xe7\xce\x03u\xbb9A\x92\x03\xa4\x17\xed\x13f\xe5\xdf\xad\x86\xac\xc2\xce\xdb4F\x88\xa1>\xfd\xba\xe8\x9c\xdcp\xb3uJ\x19%8\r|\x01\xb1\x89\xdf\xd1\x19\xff\x16C\x1e\xb5\x1d\x9f8\xd71\xa3y\x83@\xf4\xd6\x8a\xc79W\xf1\x80\xf3f\x12Wx\x95\x0b-\xd9\xfc\xa5\x96\xc8\x86L\xe9xR\x968\x7f\xd8{\xa0\'6\x1e\x83\xef\xa9\xd5\xea\x1b(\xe7L\x87_A\xd1~p\xf3\x19\x19u5\xa41C\xa0\xa7Y\xecH.\x85\xf7\xde\x14\x1d\xa5\x84|\xfc\xe0\xc7\x81\xa8Il0f_:\x81\xde\r\xdd\xf8\x12\x88\'$CiX\x0e\x00\xe4\x15\xb71p\xa3\xbe"|\x0f;ca\xdf\xfd@\xa9\x973\x0f\xf5\x8c\x14\x99\x0euo\xf4\xf0\x95\xef\xebLY\xbd\x9c\xa3\x19V\x85\x11\x972\xe7\xaa&\xf3n\xf3\xbb*?\x96\xb1\'\xa1\xf7\xbe%?\xee\xf9\xc8\xca_&\x96c#\xe5J_\x16\x9a\xa9\x83\x17\x94\t\xba\xd1\xd0\x8aQ\x00\xd0\xd7v#\x9c\xec\xfb\x91\x16\n\x90\xe1\x07dxa7t\xf4\xe7\xd6\xa9\x00\x92s|7\x816\x82D\xab@$J\xb1\xc9\xf9\x06\xdc\xa7\x9b\x13\xfe\xef\xac\xf6\xdc\x19\x87\x9c\xe3\x14{f\x01\x87\x90\x95\x07\x08_\x0c\xfd\xd9\xb1\xaeg\xf6\x87O\x0c\x9c\x82\xe6\x049A\xb9\x87A,"V\x86\xc7\xb3+\xf4\xb3\xb0\xbf\xb6\xaa\x0b\xa2\xc0>\xc7\x99b\x97\xf6\xe6 l\x13\xd2\xa0\xa9`,\xb5m\xf2Z}\xee\xf6G\x1ac\xda_\xe2%\xa0a\xed\x0c{_\xbf\xe6\t\x8b\x8c\xf0\xb1l\xcd/JJ \x9d\xde[\xac\x9b\xbf\x8bi\x99\x94\xa4\xd2\nx2^N+7\xd4\xa0\x8e\xaf\xe4\xba\x16\x0c\xb0\'\xa6\x1a\x83\x80\x0f\x06\xeb\x91=\'9\xd941G\xb1\xe6\x1f\xacoVz\xdc\x0b\xce\xb5L\x18%\xf6s\xa9k\xc3\xb32\x97s\x0e%\x0c.\xad\x92\xd6\xac\xc6\x82\x86\x9a\xe1\xac\xd9\xfe\x1b7i\xebe\x8b!t\'D\xf5?\xd8\xa4\x03s17\xd3\xe6\x81\xdf\xdd\xd1>i\xb0\x8d\x14\xc9\x8e\'ly\x054p\x05\xbf\xa9')
fake.md5(raw_output=False)
# 'a480940d40e9eeb8db15b0ad783d9753'
fake.sha1(raw_output=False)
# '5e6c07224d88b41918b96d95398627c09e9ff157'
fake.null_boolean()
# None
fake.sha256(raw_output=False)
# '51055a4fd8a505937a6bcb2b2134ee1451018e9db57d892edbffc50c1d55e88d'
fake.uuid4()
# '13210dfb-a0ec-e960-8a2d-ab219f706237'
fake.language_code()
# u'csb'
fake.boolean(chance_of_getting_true=50)
# True
faker.providers.person
¶
fake.last_name_male()
# u'Andersson'
fake.name_female()
# u'Marianne Norberg'
fake.prefix_male()
# u''
fake.prefix()
# u''
fake.name()
# u'Stina Carlsson'
fake.suffix_female()
# u''
fake.name_male()
# u'Anders Nilsson'
fake.first_name()
# u'Elisabeth'
fake.suffix_male()
# u''
fake.suffix()
# u''
fake.first_name_male()
# u'Emanuel'
fake.first_name_female()
# u'Britt'
fake.last_name_female()
# u'Nilsson'
fake.last_name()
# u'Nilsson'
fake.prefix_female()
# u''
faker.providers.phone_number
¶
fake.phone_number()
# u'070-45 53 89'
fake.msisdn()
# '1595433399614'
faker.providers.profile
¶
fake.simple_profile(sex=None)
# { 'address': u'Ringgatan 1\n88586 Ume\xe5',
# 'birthdate': datetime.date(1932, 10, 29),
# 'mail': u'volofsson@yahoo.de',
# 'name': u'Patrik Eriksson',
# 'sex': 'M',
# 'username': u'ppettersson'}
fake.profile(fields=None, sex=None)
# { 'address': u'Kyrkstigen 84\n98800 Varberg',
# 'birthdate': datetime.date(1998, 5, 8),
# 'blood_group': 'AB+',
# 'company': u'Gunnarsson Karlsson AB',
# 'current_location': (Decimal('42.305559'), Decimal('154.608040')),
# 'job': 'Clinical biochemist',
# 'mail': u'elisabetsjoberg@yahoo.de',
# 'name': u'Gustaf Karlsson',
# 'residence': u'J\xe4rnv\xe4gsgatan 339\n41645 Landskrona',
# 'sex': 'M',
# 'ssn': u'820225-3608',
# 'username': u'petterssongudrun',
# 'website': [u'http://hansson.com/']}
faker.providers.python
¶
fake.pyiterable(nb_elements=10, variable_nb_elements=True, *value_types)
# [ u'rJmdjQqshYADaoswDZBR',
# -6343.869722513,
# Decimal('4.65155601404E+13'),
# 1037,
# u'nWCuelSEqfNbvzbCHvvr',
# -793967347.13,
# -17.54,
# datetime.datetime(1976, 12, 24, 15, 37, 51),
# 7796,
# datetime.datetime(1973, 9, 20, 2, 12, 22),
# Decimal('-4349.0'),
# 6170]
fake.pystr(min_chars=None, max_chars=20)
# u'ERkLMKGZwsWSISGGkLef'
fake.pystruct(count=10, *value_types)
# ( [ u'thghRskcgIyhAAEYOMTm',
# u'qlQHJxLwvuRoCXxNeUta',
# 9218,
# datetime.datetime(2009, 12, 14, 18, 34, 43),
# datetime.datetime(2005, 11, 26, 9, 15, 14),
# Decimal('3706870.13149'),
# u'filiplarsson@persson.net',
# u'SLWIAyDiTjKUADNynSaz',
# u'nzhwYjImWRfPVhBHKfkV',
# Decimal('49362239938.3')],
# { u'culpa': u'http://nilsson.se/wp-content/category/index/',
# u'cum': u'vPlJbWGEMDmUkmTCWTBG',
# u'dicta': u'CHcYSCrmYXoPwQXtmmFW',
# u'iste': u'sxAVlWrwfIeEeLIVFmgd',
# u'officiis': 3817,
# u'optio': 5696,
# u'perspiciatis': Decimal('6245472743.27'),
# u'temporibus': 5025,
# u'unde': u'gouKvqfWxyUGVLRqbvxv',
# u'voluptatibus': u'https://www.karlsson.se/posts/app/app/homepage/'},
# { u'aut': { 1: u'fnilsson@gmail.com',
# 2: [ Decimal('941706233973'),
# u'https://www.karlsson.se/',
# 9194],
# 3: { 1: datetime.datetime(1998, 5, 3, 22, 3, 14),
# 2: datetime.datetime(2010, 10, 16, 5, 23, 1),
# 3: [2511896.2, u'sandersson@spray.se']}},
# u'eius': { 4: u'fdZxdWzomWqTXkfatcRQ',
# 5: [ u'fRqHZSyNPkTMlNgfmuqm',
# u'LdhTSLFDvWwDzCRRqzsL',
# -2816.48],
# 6: { 4: u'hVZhggHoMcByanPyYOUG',
# 5: u'pAfXoWzBxbjrCIRGaXnM',
# 6: [ u'aeriksson@gmail.com',
# u'jWnoOPbPvxirWqOJtaJb']}},
# u'error': { 9: 5540,
# 10: [ u'kXawIyGmOnrLjrPBytBA',
# u'jzXcmFwlHKXVkOtiHnUu',
# u'wnSudJbdNQfroqutRFNq'],
# 11: { 9: u'RSESWLZBnAHnkGWCYdoP',
# 10: 5691,
# 11: [9050, 59837397.8587663]}},
# u'fugit': { 2: 86809218433360.1,
# 3: [ u'https://nordstrom.com/',
# u'dMNndkSVHPjaNAVGVvEa',
# u'pumInoqOlLuhGejjXRFU'],
# 4: { 2: u'bjorklundsoren@karlsson.com',
# 3: datetime.datetime(2007, 8, 13, 12, 45, 16),
# 4: [1497, u'ShorHDTiNsVOPRRBoWUI']}},
# u'hic': { 7: 9647,
# 8: [-82040235.78, 1563, -1796.2784759441],
# 9: { 7: datetime.datetime(2014, 10, 2, 14, 57, 42),
# 8: u'HqePjqDujhKlOrhHGggi',
# 9: [ u'iyxtQYSrXqNCMcggCKbn',
# datetime.datetime(2018, 3, 26, 12, 16, 16)]}},
# u'incidunt': { 6: 8613,
# 7: [ u'VgylDhEByVyesKRPPrke',
# u'kzLMZtyWUUDsQWjsBDaS',
# datetime.datetime(2015, 6, 21, 18, 43, 36)],
# 8: { 6: u'elLCGqTBhzftxvanwgii',
# 7: u'jZiphxXvDyglLeRLbLfP',
# 8: [u'FqkzMDCcnDLMkUNlfTUY', 3905]}},
# u'neque': { 0: u'marie90@larsson.org',
# 1: [8761662421177.7, u'bhCmCjHHpPSxBnLljsDI', 6288],
# 2: { 0: u'ykRitiDmWGJRzuThqwLs',
# 1: u'ingeandersson@eriksson.se',
# 2: [ datetime.datetime(2011, 8, 13, 0, 6, 15),
# u'eCIDKiaQIegLTQrFgAAQ']}},
# u'placeat': { 8: 6401,
# 9: [ 9511,
# Decimal('-71002.348'),
# datetime.datetime(2018, 5, 8, 5, 37)],
# 10: { 8: u'elisabeth25@spray.se',
# 9: u'ZQXnlLxGJVyDZOkkzMBi',
# 10: [ u'gustavlindberg@nilsson.se',
# u'cXMiMUjzmpbGdtEKMaxb']}},
# u'quo': { 3: 5122,
# 4: [ 8054,
# u'DcBvIUifKQYuTecbcdGQ',
# u'kVyjnOPxiUmgDMPnudBQ'],
# 5: { 3: u'http://www.karlsson.com/',
# 4: u'harrietpersson@fredriksson.com',
# 5: [5672, u'mdrmCdYAKOKUUxOzWhtH']}},
# u'velit': { 5: -35964.0,
# 6: [374, 229216482096.0, 9097],
# 7: { 5: 1606,
# 6: u'UtqiBVIgoaprGoeOajEh',
# 7: [227749426.5, u'lxgegrqdBtgDMhaMiQuK']}}})
fake.pyfloat(left_digits=None, right_digits=None, positive=False)
# -11367186.6495
fake.pydecimal(left_digits=None, right_digits=None, positive=False)
# Decimal('75629442.2545')
fake.pylist(nb_elements=10, variable_nb_elements=True, *value_types)
# [ -43094315.866,
# -540137.75489053,
# u'https://www.noren.se/login/',
# 48289.5,
# 7796,
# u'eriklundqvist@live.se',
# u'lsNSNlqUaIZhIHtZEpiX',
# u'xbNcLvxskyPpahoODYQt',
# Decimal('-60159.202'),
# datetime.datetime(2008, 3, 30, 3, 9, 49),
# 3639]
fake.pytuple(nb_elements=10, variable_nb_elements=True, *value_types)
# ( Decimal('-5.69066504768E+12'),
# 7269,
# u'http://petersson.se/faq/',
# u'uNALAcMpQCOZtuoSvWfL',
# u'alexandersandberg@live.se',
# u'https://www.nilsson.com/search/',
# u'http://svensson.org/register.php',
# u'BagqsBoWJaembzKrkIGc',
# datetime.datetime(2005, 7, 16, 18, 1, 5),
# 8101,
# u'OfTJNmOmEPmWkDXiYHYc',
# 6789)
fake.pybool()
# True
fake.pyset(nb_elements=10, variable_nb_elements=True, *value_types)
# set([u'https://sjoberg.se/', u'ggcLYlTqiuGAIEpbwwdT', 468.83894739, 603, 1756, 7262])
fake.pydict(nb_elements=10, variable_nb_elements=True, *value_types)
# { u'deserunt': u'nEPsFKYIRPDXPurUKDni',
# u'dignissimos': u'qjakobsson@telia.com',
# u'eum': u'RMyhOitqWsaXlsJPXHOI',
# u'fugit': u'petterssoncharlotte@swipnet.se',
# u'illum': u'CWnqkcClsIrDaGKXFeYw',
# u'inventore': u'https://www.johansson.se/app/author/',
# u'ipsa': u'http://www.eriksson.se/explore/login/',
# u'ipsum': u'http://www.karlsson.se/posts/blog/tags/main.jsp',
# u'quo': datetime.datetime(2010, 12, 15, 18, 47, 34),
# u'reprehenderit': u'ueeexeNnbegbkOBHKJOJ',
# u'sapiente': u'anders56@live.se',
# u'sed': u'PXqDjZhXQgHoGPQUbzMR',
# u'tenetur': 6293}
fake.pyint()
# 6325
faker.providers.ssn
¶
fake.ssn(min_age=18, max_age=90)
# u'911231-9406'
faker.providers.user_agent
¶
fake.mac_processor()
# u'Intel'
fake.firefox()
# u'Mozilla/5.0 (Macintosh; PPC Mac OS X 10_8_9; rv:1.9.4.20) Gecko/2015-02-09 16:42:20 Firefox/3.6.13'
fake.linux_platform_token()
# u'X11; Linux x86_64'
fake.opera()
# u'Opera/9.49.(Windows NT 4.0; nr-ZA) Presto/2.9.188 Version/10.00'
fake.windows_platform_token()
# u'Windows 98; Win 9x 4.90'
fake.internet_explorer()
# u'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.1)'
fake.user_agent()
# u'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; st-ZA) AppleWebKit/533.11.4 (KHTML, like Gecko) Version/4.0.5 Mobile/8B116 Safari/6533.11.4'
fake.linux_processor()
# u'x86_64'
fake.chrome(version_from=13, version_to=63, build_from=800, build_to=899)
# u'Mozilla/5.0 (Windows 98; Win 9x 4.90) AppleWebKit/5362 (KHTML, like Gecko) Chrome/46.0.895.0 Safari/5362'
fake.mac_platform_token()
# u'Macintosh; U; Intel Mac OS X 10_7_2'
fake.safari()
# u'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; nan-TW) AppleWebKit/533.13.4 (KHTML, like Gecko) Version/3.0.5 Mobile/8B119 Safari/6533.13.4'