Skip to main content

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

Installing the package from pypi

# create a virtual environment
>>> python3 -m venv venv
>>> pip install ayomide-sdk==0.0.7

Installing the sdk client

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

Metadata

Release files for ayomide-sdk 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ayomide-sdk 0.0.8
File Size Uploaded Provenance
ayomide-sdk-0.0.8.tar.gz 6.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ayomide-sdk 0.0.8
File Interpreter ABI Platform
ayomide_sdk-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / ayomide-sdk-0.0.8.tar.gz

Download URL ayomide-sdk-0.0.8.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0a5f6a78d6c308613e98e02ddb170f68fc73974cb22ecdef33993b0dc27c817e
BLAKE2b-256 checksum
How to use checksums
190fc8a87a6f9c543ed376f4d7a0af022c127033ec0507441ce3a5ea790d3b3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / ayomide_sdk-0.0.8-py3-none-any.whl

Download URL ayomide_sdk-0.0.8-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5aba40a12e433c5b64846e33830b2def229c4d61b86fd79d013abe5aeb1c5f75
BLAKE2b-256 checksum
How to use checksums
ddf54caab2c8c5bc38ce34e3991a8e9328068ca36fd2b902699081f3da05a459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for ayomide-sdk 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page