Skip to main content

FakesUsers - Python library that regenerates random names, phone numbers, addresses, email and much more.

Project description

FakesUsers

FakesUsers - Python library that regenerates random names, phone numbers, addresses and email.

Content

About the project

FakesUsers -- is a project designed to generate random information from its database. It can be used for any purpose, as well as modified and improved in some way. filcher2011 is working on the project. He works hard on the project and tries to release updates more often.

Import

In order to import the library, you need to install it :) Enter the cmd command to install this library

pip install FakesUsers

After that, in your file with the .py extension, write . . .

from FakesUsers import Fu
fu = Fu()

Basic Concept

What commands are there in this library? This library has commands such as: Changing the region for generation

genRegion('ru/en')

PS:If you put genRegion('ru'), then all names, numbers and addresses will be regenerated relevant for Russia. Well, if you put genRegion('en'), then all names, phone numbers and addresses will be regenerated relevant for the USA (default is 'ru')

Displaying a random name

fake_name('gender')

PS:If you write 'male' in brackets, then only male names will be generated, the opposite if you put 'female' in brackets

Displaying a random phone number

fake_number()

Displaying a random addres

fake_addres(True/False)

PS:True means that the address will be generated along with the city. Opposite with False

Displaying a random email

fake_email()

Displaying a random password

fake_pass()

Displaying a random city

fake_city()

Displaying a random Cart's number

fake_banknumber()

Displaying a random date of birth

fake_dob()

And displaying a random login

fake_login()

Example Code

Let's look at a simple code that will output a random man's and woman's name, phone number and address Code

from FakesUsers import Fu

fu = Fu()
fu.genRegion('en')

print(fu.fake_name('male'))
print(fu.fake_name('female'))
print(fu.fake_number())
print(fu.fake_addres(True))
print(fu.fake_addres(False))
print(fu.fake_dob())
print(fu.fake_email())
print(fu.fake_pass())
print(fu.fake_login())
print(fu.fake_banknumber())
print(fu.fake_number())
print(fu.fake_city())

Result

Patrick Abramson
Helen Bush
+10038654581
Seattle City, 90 Violet Streed      
57 Black Streed
25.9.1994
930ip42zimzas.yan
347264623jonhfu55569383347264623jonh
likras
1492 2849 7740 5206
+10080006559
Atlanta city

Information on creator

filcher2011 == I've been a Python programmer for about 2 years now. He does small projects :) Telegram-channel: https://t.me/filchercode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FakesUsers-3.3.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file FakesUsers-3.3.tar.gz.

File metadata

  • Download URL: FakesUsers-3.3.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for FakesUsers-3.3.tar.gz
Algorithm Hash digest
SHA256 f5145583a08f93011e69beab1a55bfbf59636bcfe7ea24814cced25015868f80
MD5 aa299f134c45ff29806a325a97c9cf90
BLAKE2b-256 17c63ea0629610162eca9b3056c5dd6c9dd3e80f55ff1ff8ec1c2282dd1cb6b7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page