nokey.random package

Submodules

nokey.random.random_user module

class nokey.random.random_user.RandomUserGenerator(use_caching=False, cache_name='random_user_cache', backend='sqlite', expire_after=3600)[source]

Bases: object

A class to interact with the Random User Generator API.

base_url

The base url of the API.

about

A short description of the API.

generate_random_user()[source]

Returns randomly generated data for a random user.

Parameters:

None

Returns:

Dictionary containing random information (such as name, DOB, SSN, address, etc) for a random user.

Return type:

dict

get_docs_url()[source]

Returns the url for the Random User Generator API documentation.

Parameters:

None

Returns:

URL for API documentation.

Return type:

string

Module contents