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.
Release files for ron-swanson-client 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ron-swanson-client-0.1.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ron_swanson_client-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / ron-swanson-client-0.1.tar.gz
| Download URL | ron-swanson-client-0.1.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5a4215ed8d968eb742df7856ca53a6e4c73b693e2ca29607b25d882dec20fbb
|
|
BLAKE2b-256 checksum How to use checksums |
9b150daf05d24d1127fdfd5f2652df7b641299e40bb7378f049f4a6c82ac2ca0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / ron_swanson_client-0.1-py3-none-any.whl
| Download URL | ron_swanson_client-0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de555d450a1645ec32aaf4cd594795e1da3e33ddd523496dca18de4e9fcedede
|
|
BLAKE2b-256 checksum How to use checksums |
84f39ff0d647380921283a06f9fdfd786178ae733b184982e822916f668021f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|