Skip to main content

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

This version

0.1

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ron_swanson_client-0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ron-swanson-client-0.1.tar.gz.

File metadata

  • Download URL: ron-swanson-client-0.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for ron-swanson-client-0.1.tar.gz
Algorithm Hash digest
SHA256 b5a4215ed8d968eb742df7856ca53a6e4c73b693e2ca29607b25d882dec20fbb
MD5 104cb49b0c297c4d81601302a82525e8
BLAKE2b-256 9b150daf05d24d1127fdfd5f2652df7b641299e40bb7378f049f4a6c82ac2ca0

See more details on using hashes here.

File details

Details for the file ron_swanson_client-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ron_swanson_client-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de555d450a1645ec32aaf4cd594795e1da3e33ddd523496dca18de4e9fcedede
MD5 1b87e5e3a6c4d2005e3cc6aee42e1871
BLAKE2b-256 84f39ff0d647380921283a06f9fdfd786178ae733b184982e822916f668021f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page