FakesUsers - Python library that regenerates random names, phone numbers, addresses, city, passwords, email and date of birth.
Project description
FakesUsers 3.2
FakesUsers - Python library that regenerates random names, phone numbers, addresses, city, passwords, email and date of birth.
Content
About the project Installation and Import Basic Concepts Example code Information on creator
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.
Installation 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()
Basic Concepts
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 male 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 city
fake_city()
Displaying a random password
fake_pass()
And displaying a random date of birth
fake_dob()
Example Code
Let's write a program that checks all library methods
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_pass())
print(fu.fake_city())
print(fu.fake_dob())
Result
Sebastian Behm
Rita Babcook
+10050077543
Atlanta City, 34 Green Streed
97 Up Streed
25246fu6036256625246
Atlanta city
8.10.2021
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
File details
Details for the file FakesUsers-3.2.tar.gz
.
File metadata
- Download URL: FakesUsers-3.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61dbcdb00733b9f8ca8edf58c4e61183a63eb471b7698eb85779e08687d4d09b |
|
MD5 | f766bb840b2d699c0f67f6156d4c29df |
|
BLAKE2b-256 | e51079ff893ca9f8ffea16b661a59e82a7acd33e283ee1531e24de668c33ca63 |