
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
randomuser
Advanced tools
|pypi| |license| |github|
.. |pypi| image:: https://img.shields.io/pypi/v/randomuser.svg :alt: PyPI :target: https://pypi.python.org/pypi/randomuser
.. |license| image:: https://img.shields.io/pypi/l/randomuser.svg :alt: PyPI - License
.. |github| image:: https://img.shields.io/badge/GitHub--green.svg?style=social&logo=github :alt: GitHub :target: https://github.com/connordelacruz/python-randomuser
Python class for generating random user data using
randomuser.me <https://randomuser.me>__ API.
.. code:: python
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:
.. code:: python
# 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 <https://randomuser.me/documentation>__.
.. readme-only
For details on the RandomUser class and optional parameters for these
methods, see the
documentation <http://connordelacruz.com/python-randomuser/randomuser.html>__.
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()``
FAQs
Python class for generating random user data using https://randomuser.me API
We found that randomuser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.