randuser


Nameranduser JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/joaopcnogueira/randuser
SummaryPython package to query the random user api
upload_time2023-03-13 15:11:54
maintainer
docs_urlNone
authorJoão Nogueira
requires_python>=3.7
licenseApache Software License 2.0
keywords nbdev jupyter notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            randuser
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

This file will become your README and also the index of your
documentation.

## Install

``` sh
pip install randuser
```

## How to use

``` python
from randuser.core import random_user
```

``` python
user1 = random_user(gender="female", nationality='BR')
user2 = random_user(gender="male", nationality="US")
```

``` python
print(user1)
```

    {'gender': 'female', 'name': {'title': 'Ms', 'first': 'Ilaine', 'last': 'Aragão'}, 'location': {'street': {'number': 5151, 'name': 'Rua Treze '}, 'city': 'Campo Largo', 'state': 'Mato Grosso', 'country': 'Brazil', 'postcode': 95700, 'coordinates': {'latitude': '-5.0067', 'longitude': '-29.9712'}, 'timezone': {'offset': '+7:00', 'description': 'Bangkok, Hanoi, Jakarta'}}, 'email': 'ilaine.aragao@example.com', 'login': {'uuid': '0bc8d36f-71ce-4005-b609-8235c1ef9322', 'username': 'beautifullion602', 'password': 'happy2', 'salt': 'BgV5ccum', 'md5': '58b3fbaf0740347155fd93fbb314bfef', 'sha1': 'ca4e47d3eb8c98bd692e05dcc1eea947a3267444', 'sha256': '83dd680ab88317652f7946be2675206474cf711a3839541b1a6492ebc70c1a70'}, 'dob': {'date': '1953-07-17T15:41:16.929Z', 'age': 69}, 'registered': {'date': '2006-11-03T22:28:29.254Z', 'age': 16}, 'phone': '(70) 8952-1138', 'cell': '(70) 4938-4352', 'id': {'name': 'CPF', 'value': '744.546.024-87'}, 'picture': {'large': 'https://randomuser.me/api/portraits/women/31.jpg', 'medium': 'https://randomuser.me/api/portraits/med/women/31.jpg', 'thumbnail': 'https://randomuser.me/api/portraits/thumb/women/31.jpg'}, 'nat': 'BR'}

``` python
print(user2)
```

    {'gender': 'male', 'name': {'title': 'Mr', 'first': 'Corey', 'last': 'Davidson'}, 'location': {'street': {'number': 9947, 'name': 'Camden Ave'}, 'city': 'Bozeman', 'state': 'South Dakota', 'country': 'United States', 'postcode': 98170, 'coordinates': {'latitude': '68.1637', 'longitude': '-107.5021'}, 'timezone': {'offset': '+4:30', 'description': 'Kabul'}}, 'email': 'corey.davidson@example.com', 'login': {'uuid': '3af11cf9-d8bc-4fe2-9e93-cb2d57d8d891', 'username': 'tinylion310', 'password': 'filthy', 'salt': 'K2HSV94j', 'md5': '5a4729e23552e599187208b5f44e4fc4', 'sha1': '928f05d4af4a27e10b8036c1cd9920f86dcc8f42', 'sha256': 'ab92f8b0cae11c78685fb13b4a8a1fc0efa7794b8d9876ac2d041a78184694d4'}, 'dob': {'date': '1988-10-30T00:04:57.381Z', 'age': 34}, 'registered': {'date': '2016-05-27T18:11:35.274Z', 'age': 6}, 'phone': '(834) 858-5500', 'cell': '(560) 471-6729', 'id': {'name': 'SSN', 'value': '409-21-2391'}, 'picture': {'large': 'https://randomuser.me/api/portraits/men/15.jpg', 'medium': 'https://randomuser.me/api/portraits/med/men/15.jpg', 'thumbnail': 'https://randomuser.me/api/portraits/thumb/men/15.jpg'}, 'nat': 'US'}



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/joaopcnogueira/randuser",
    "name": "randuser",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "nbdev jupyter notebook python",
    "author": "Jo\u00e3o Nogueira",
    "author_email": "joaopcnogueira@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2d/7f/8805a9271e61e76fa7061d4b19e35658798927fe612421e37dddde83d7c2/randuser-0.0.1.tar.gz",
    "platform": null,
    "description": "randuser\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nThis file will become your README and also the index of your\ndocumentation.\n\n## Install\n\n``` sh\npip install randuser\n```\n\n## How to use\n\n``` python\nfrom randuser.core import random_user\n```\n\n``` python\nuser1 = random_user(gender=\"female\", nationality='BR')\nuser2 = random_user(gender=\"male\", nationality=\"US\")\n```\n\n``` python\nprint(user1)\n```\n\n    {'gender': 'female', 'name': {'title': 'Ms', 'first': 'Ilaine', 'last': 'Arag\u00e3o'}, 'location': {'street': {'number': 5151, 'name': 'Rua Treze '}, 'city': 'Campo Largo', 'state': 'Mato Grosso', 'country': 'Brazil', 'postcode': 95700, 'coordinates': {'latitude': '-5.0067', 'longitude': '-29.9712'}, 'timezone': {'offset': '+7:00', 'description': 'Bangkok, Hanoi, Jakarta'}}, 'email': 'ilaine.aragao@example.com', 'login': {'uuid': '0bc8d36f-71ce-4005-b609-8235c1ef9322', 'username': 'beautifullion602', 'password': 'happy2', 'salt': 'BgV5ccum', 'md5': '58b3fbaf0740347155fd93fbb314bfef', 'sha1': 'ca4e47d3eb8c98bd692e05dcc1eea947a3267444', 'sha256': '83dd680ab88317652f7946be2675206474cf711a3839541b1a6492ebc70c1a70'}, 'dob': {'date': '1953-07-17T15:41:16.929Z', 'age': 69}, 'registered': {'date': '2006-11-03T22:28:29.254Z', 'age': 16}, 'phone': '(70) 8952-1138', 'cell': '(70) 4938-4352', 'id': {'name': 'CPF', 'value': '744.546.024-87'}, 'picture': {'large': 'https://randomuser.me/api/portraits/women/31.jpg', 'medium': 'https://randomuser.me/api/portraits/med/women/31.jpg', 'thumbnail': 'https://randomuser.me/api/portraits/thumb/women/31.jpg'}, 'nat': 'BR'}\n\n``` python\nprint(user2)\n```\n\n    {'gender': 'male', 'name': {'title': 'Mr', 'first': 'Corey', 'last': 'Davidson'}, 'location': {'street': {'number': 9947, 'name': 'Camden Ave'}, 'city': 'Bozeman', 'state': 'South Dakota', 'country': 'United States', 'postcode': 98170, 'coordinates': {'latitude': '68.1637', 'longitude': '-107.5021'}, 'timezone': {'offset': '+4:30', 'description': 'Kabul'}}, 'email': 'corey.davidson@example.com', 'login': {'uuid': '3af11cf9-d8bc-4fe2-9e93-cb2d57d8d891', 'username': 'tinylion310', 'password': 'filthy', 'salt': 'K2HSV94j', 'md5': '5a4729e23552e599187208b5f44e4fc4', 'sha1': '928f05d4af4a27e10b8036c1cd9920f86dcc8f42', 'sha256': 'ab92f8b0cae11c78685fb13b4a8a1fc0efa7794b8d9876ac2d041a78184694d4'}, 'dob': {'date': '1988-10-30T00:04:57.381Z', 'age': 34}, 'registered': {'date': '2016-05-27T18:11:35.274Z', 'age': 6}, 'phone': '(834) 858-5500', 'cell': '(560) 471-6729', 'id': {'name': 'SSN', 'value': '409-21-2391'}, 'picture': {'large': 'https://randomuser.me/api/portraits/men/15.jpg', 'medium': 'https://randomuser.me/api/portraits/med/men/15.jpg', 'thumbnail': 'https://randomuser.me/api/portraits/thumb/men/15.jpg'}, 'nat': 'US'}\n\n\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Python package to query the random user api",
    "version": "0.0.1",
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c9c152d9fd2e1b741ab844fa1d8dbb9dcb5471f78db83d53f6a960475d74c716",
                "md5": "0e6fc18a5411f9c4e104bb0f56cc32da",
                "sha256": "342495bc99bf727e77a4f4666ec0189b2f1b3fc215b4d1cf1056aec6b02d7a66"
            },
            "downloads": -1,
            "filename": "randuser-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e6fc18a5411f9c4e104bb0f56cc32da",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8463,
            "upload_time": "2023-03-13T15:11:52",
            "upload_time_iso_8601": "2023-03-13T15:11:52.102328Z",
            "url": "https://files.pythonhosted.org/packages/c9/c1/52d9fd2e1b741ab844fa1d8dbb9dcb5471f78db83d53f6a960475d74c716/randuser-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d7f8805a9271e61e76fa7061d4b19e35658798927fe612421e37dddde83d7c2",
                "md5": "0290199a92aa68d6c9b4fdcd20c676cc",
                "sha256": "2be0046275149735237225ad92a1c7d2d85ba0349ce55af6852f12182c99d0c9"
            },
            "downloads": -1,
            "filename": "randuser-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0290199a92aa68d6c9b4fdcd20c676cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8910,
            "upload_time": "2023-03-13T15:11:54",
            "upload_time_iso_8601": "2023-03-13T15:11:54.056102Z",
            "url": "https://files.pythonhosted.org/packages/2d/7f/8805a9271e61e76fa7061d4b19e35658798927fe612421e37dddde83d7c2/randuser-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-13 15:11:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "joaopcnogueira",
    "github_project": "randuser",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "randuser"
}
        
Elapsed time: 0.04600s