Skip to main content

A simple tool helps you generate fake users.

Project description

# RandomUsers [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Supported Python versions](https://img.shields.io/pypi/pyversions/RandomUsers.svg)](https://pypi.python.org/pypi/RandomUsers) [![PyPi Package Version](https://img.shields.io/pypi/v/RandomUsers.svg)](https://pypi.python.org/pypi/RandomUsers) A simple tool helps you generate fake users. ## Installation `shell $ pip install RandomUsers ` ## Example More examples in /examples. ### basic `python 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.User(username=username, password=password, email=email) user = user_model.generate() print(user.username, user.password, user.email) ` ### advanced `python import RandomUsers as ru name = ru.Name() username = ru.Username() # "@", "#" and "$" must be in the password password = ru.Password(length_range=range(20,25), must="@#$") birth = ru.Birth(birth_year_range=range(2000, 2011)) user_model = ru.User(name=name, username=username, password=password, birth=birth) user = user_model.generate() print(user.surname, user.forename, user.username, user.password, user.birthday, user.age) `

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-0.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: RandomUsers-0.3.tar.gz
  • Upload date:
  • Size: 4.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.4

File hashes

Hashes for RandomUsers-0.3.tar.gz
Algorithm Hash digest
SHA256 5d5fd8385f58f98aea617851fff9e962d5c36a7f49c3f66bf158b5aa37a5c533
MD5 8f25806770e793521409731120815c4d
BLAKE2b-256 723305b2145230d4949430438b23b4a938226d824bbc71a90b03f07be529d356

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