Skip to main content

This is a simple Python library to

Project description

The Lord of the rings API Python SDK

Welcome to this Python SDK repository for the The Lord of the rings API.

This is a simple library to facilitate the usage of the The Lord of the rings API.

Register on https://the-one-api.dev/ to get your API token used to authenticate your requests

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> quotes = client.quote.get()
>>> quotes["status"]
200
>>> quotes["json"]
{}

for /movie

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> movies = client.quote.get()
>>> movies["status"]
200
>>> movies["json"]
{}

for /movie/id

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> single_movie = client.movie.get(params={'id':"5cd95395de30eff6ebccde57"})
>>> single_movie["status"]
200
>>> single_movie["json"]
{}

for /movie/id/quote

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> movie_quotes = client.quote.get(params={"id":"5cd95395de30eff6ebccde57","subquery"="quote"})
>>> movie_quotes["status"]
200
>>> movie_quotes["json"]
{}

for /quote

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> quotes = client.quote.get(params={"id":"5cd95395de30eff6ebccde57","subquery"="quote"})
>>> quotes["status"]
200
>>> quotes["json"]
{}

for /quote/id

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> single_quote = client.quote.get(params={'id':"5cd95395de30eff6ebccde57"})
>>> single_quote["status"]
200
>>> single_quote["json"]
{}

for pagination filter (can be used for movie and quotes on any edpoints)

>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> single_movie = client.movie.get(params={'id':"5cd95395de30eff6ebccde57"}, filters={"limit":"100","page":"2"})
>>> single_movie["status"]
200
>>> single_movie["json"]
{}

Supported Python Versions

This library supports the following Python implementations:

Python 3.6 Python 3.7 Python 3.8 Python 3.9 Python 3.10

Installation

ayomide_sdk is available on PyPI:

python -m pip install ayomide_sdk

More about ayomide_sdk

Read more here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ayomide-sdk-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

ayomide_sdk-0.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ayomide-sdk-0.0.3.tar.gz.

File metadata

  • Download URL: ayomide-sdk-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ayomide-sdk-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cb9cd5506cc757dfbd74c17620526ae56d101dc11ac801a4fc474f76161af37e
MD5 ea6cd88710080cb8b0a1b6c73f38dbde
BLAKE2b-256 d5f98f13fd570575a770d21e01a5ec4481875c0dbcd24e2ce8c60b6f34141afa

See more details on using hashes here.

File details

Details for the file ayomide_sdk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ayomide_sdk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ayomide_sdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae046afbf8e16d1137df42ad367028ca611d6c86a08c349eec172bf7a3501b93
MD5 fca7d95b8b50508466750fc08928e0a4
BLAKE2b-256 7d8f8b531c507595b9a6284a5a775ee7a3a4184447ec54e6a717a5b5d2b36fad

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