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.2.tar.gz
(5.7 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.2.tar.gz.
File metadata
- Download URL: RandomUsers-1.2.tar.gz
- Upload date:
- Size: 5.7 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.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24617ade360618e8fa1e30ad763caebac36bdad356cf66e1aae39b6450d3913e
|
|
| MD5 |
a16a7e6121be1682556fe10708187540
|
|
| BLAKE2b-256 |
0a94e278a2ad976cde2cacbfe234563de1ee783a277bda8157cccd4a705beaf8
|
File details
Details for the file RandomUsers-1.2-py3-none-any.whl.
File metadata
- Download URL: RandomUsers-1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
c65bd5c7453903f2c1860596c4e9d5abe1a427051d4b82b03463af5814ae332f
|
|
| MD5 |
4dbaa91002fe430f33b1047f5d935ae2
|
|
| BLAKE2b-256 |
a2b2d2c53ee289eaa1106ea7b60481d064c97091b3f86bfad4a7cfaa9fd72fd8
|