Skip to main content

A simple tool helps you generate fake users.

Project description

RandomUsers

License: MIT Supported Python versions PyPi Package Version
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.User(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.User(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-0.5.tar.gz (5.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: RandomUsers-0.5.tar.gz
  • Upload date:
  • Size: 5.0 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.5.tar.gz
Algorithm Hash digest
SHA256 ff91e295487c19c73c313630f9955299ecdeb34c261589f6beb77dbc2eea7446
MD5 465e097ecb2d9d27f747cb346516a761
BLAKE2b-256 a1142698eaf905601ab741fb0a8cc5e10718920ddc3c80dc1696968eef48a6e8

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