Ron Swanson quotes API client
Project description
Ron Swanson Client
Python client to the Ron Swanson API.
Installation
In order to install the package run
pip install ron-swanson-client
Quickstart
The package is as simple as it is. At first, create the instance of RonSwanson
class
from ron_swanson.api import RonSwanson
ron = RonSwanson()
Then run the method of the ron
instance to make a call to the API.
There are three methods available. Please, see the full example below.
import typing
from ron_swanson.api import RonSwanson
if __name__ == '__main__':
ron = RonSwanson()
# Get single quote of Ron Swanson
one_quote: str = ron.one()
# Get five quotes in a list
five_quotes: typing.List[str] = ron.random(count=5)
# Search for quotes
results: typing.List[str] = ron.search(term="food")
License
The project is licensed under MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ron-swanson-client-0.1.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for ron_swanson_client-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de555d450a1645ec32aaf4cd594795e1da3e33ddd523496dca18de4e9fcedede |
|
MD5 | 1b87e5e3a6c4d2005e3cc6aee42e1871 |
|
BLAKE2b-256 | 84f39ff0d647380921283a06f9fdfd786178ae733b184982e822916f668021f4 |