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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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