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, email and much more.
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.
New vesion
New version FakesUsers 3.7. The fake_job() function was added, and the genRegion() function was also removed
Install and 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("ru/en/de")
PS:If you put Fu('ru'), then all names, numbers and addresses will be regenerated as relevant for Russia. otherwise, if you specify Fu('en'), all names, phone numbers, and addresses will be regenerated to the US. Otherwise, if you specify Fu('de'), all names, phone numbers and addresses will be regenerated for Germany.
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 name
fake_lastname('gender')
PS:If you write 'male' in brackets, then only male lastnames 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()
Displaying a random login
fake_login()
Displaying a random auto number
fake_autonumber()
Displaying a random website(link)
fake_link()
Displaying a random text
fake_text()
And displaying a random job
fake_job()
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('en')
print(fu.fake_name('male'))
print(fu.fake_name('female'))
print(fu.fake_city())
print(fu.fake_addres(True))
print(fu.fake_addres(False))
print(fu.fake_number())
print(fu.fake_email())
print(fu.fake_autonum())
print(fu.fake_pass())
print(fu.fake_link())
print(fu.fake_banknumber())
print(fu.fake_dob())
print(fu.fake_lastname('male'))
print(fu.fake_lastname('female'))
print(fu.fake_text())
print(fu.fake_job())
Result
Justin Cashman
Trinity Blare
San-Antonio city
Chicago City, 106 San-Alnaser Streed
42 Red Streed
+10069997590
beebag@outlook.qq
MBD-537
25246fu4516553225246
kitstant.com
1094 1940 4237 3418
18.3.1972
Absher
Bishop
You gone on a visit
Police Officer
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
Financial support: https://www.donationalerts.com/r/filcher2011
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
File details
Details for the file FakesUsers-3.7.tar.gz
.
File metadata
- Download URL: FakesUsers-3.7.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 424644653a2118034adce6d5bc78225e33c97edbceefee62c59be1479565e89d |
|
MD5 | 4ed0c1fa28b20a90a2fe106b4f6f23f1 |
|
BLAKE2b-256 | c2dbdd0fdaaa72265da3731656bd8a654f72d070010ae4c555f265285dd1d0ed |