GithubHelp home page GithubHelp logo

connordelacruz / python-randomuser Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 7.22 MB

๐Ÿ‘ฉโ€๐Ÿ’ป ๐ŸŽฒ ๐Ÿ‘จโ€๐Ÿ’ป Python class for generating random user data using https://randomuser.me API

License: MIT License

Python 98.43% Shell 1.57%
randomuser python

python-randomuser's Introduction

Python Random User Generator

PyPI PyPI - License GitHub

Python class for generating random user data using randomuser.me API.

Basic Usage

from randomuser import RandomUser

# Generate a single user
user = RandomUser()

# Generate a list of 10 random users
user_list = RandomUser.generate_users(10)

Both RandomUser() and RandomUser.generate_users() can optionally accept a dictionary of parameter names to desired values using the get_params optional parameter:

# Generate a random female user
user = RandomUser({'gender': 'female'})

# Generate a list of 10 random users from Canada
user_list = RandomUser.generate_users(10, {'nat': 'ca'})

For more information on what parameters can be specified, see the randomuser.me documentation.

Method Overview

For details on the RandomUser class and optional parameters for these methods, see the documentation.

Getter Methods

  • get_cell()
  • get_city()
  • get_dob()
  • get_email()
  • get_first_name()
  • get_full_name()
  • get_gender()
  • get_id()
  • get_id_number()
  • get_id_type()
  • get_info()
  • get_last_name()
  • get_login_md5()
  • get_login_salt()
  • get_login_sha1()
  • get_login_sha256()
  • get_nat()
  • get_password()
  • get_phone()
  • get_picture()
  • get_postcode()
  • get_registered()
  • get_state()
  • get_street()
  • get_username()
  • get_zipcode()

python-randomuser's People

Contributors

connordelacruz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.