Skip to main content

A simple tool helps you generate fake data.

Project description

RandomUsers

License: MIT Supported Python versions PyPi Package Version
example workflow
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.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RandomUsers-1.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file RandomUsers-1.3.tar.gz.

File metadata

  • Download URL: RandomUsers-1.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for RandomUsers-1.3.tar.gz
Algorithm Hash digest
SHA256 dff1235e493fa59adac73c1f850f8fafb3d02f2cc17722a33dac1fabfa780594
MD5 f1498dce8bbe0b9e0c7eedf0fa6adbb4
BLAKE2b-256 44e342d87d6091978a4d78c4f5b96d75becce9684c1eff2808b5ad18da878c9e

See more details on using hashes here.

File details

Details for the file RandomUsers-1.3-py3-none-any.whl.

File metadata

  • Download URL: RandomUsers-1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for RandomUsers-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6ddc9ba4dc72ae71e6919751fd2b8862b490e31a2848b7f0886a14ed1195f59b
MD5 be198ad25374a32f141353e7d81ea1a5
BLAKE2b-256 d240003570e24c7292d68595c4938a9d5f3443f458e038819af09b480327abc6

See more details on using hashes here.

Supported by

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