A simple tool helps you generate fake data.
Project description
RandomUsers
A simple tool helps you generate fake users.
Installation
$ pip install RandomUsers
Examples
Basic
import RandomUsers as ru
# Create username object
username = ru.Username()
# Create password object
password = ru.Password()
# Create email object
email = ru.Email()
# Create user model object
user_model = ru.BasicModel(username=username, password=password, email=email)
user = user_model.generate()
print(user)
With more fields
import RandomUsers as ru
name = ru.Name()
username = ru.Username()
password = ru.Password(length_range=range(20,25))
birth = ru.Birth(birth_year_range=range(2000, 2011))
phone_number = ru.PhoneNumber()
user_model = ru.BasicModel(name=name, username=username, password=password, birth=birth, phone_number=phone_number)
user = user_model.generate()
print(user)
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
RandomUsers-1.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RandomUsers-1.1.tar.gz.
File metadata
- Download URL: RandomUsers-1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db4238ae583bc4866853b3d9198c61ae63560b210aad6c6bb0bc408256797eb4
|
|
| MD5 |
7a4dbd8145508ee8146b0a74ff658cbf
|
|
| BLAKE2b-256 |
dd4e788945f4a3cb00f7db665f95d86a3eecf128843a49f211f44412defbb490
|
File details
Details for the file RandomUsers-1.1-py3-none-any.whl.
File metadata
- Download URL: RandomUsers-1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f014f00169db7b650c33023b2cfb04ae969f051f2114e71cd2458b78414f5934
|
|
| MD5 |
0a0c74a50611479329709fcded351b80
|
|
| BLAKE2b-256 |
671107930e65e766c7c523477f563749dccc4e5688cab53c6af98c8a70e9860b
|