SDK Implementing https://the-one-api.dev API to serve information on all LOTR lore.
Project description
Lord of the Rings Python SDK
SDK Implementing the-one-api API to serve information on LOTR.
Getting Started
Source code: https://github.com/cynepton/isaac-lotr-sdk
Requirements:
- Python version 3.5 or later
- A the-one-api.dev account access_token. (If you only wish to use the
/bookendpoint you would not need this to use the API, but at the moment it is required by the SDK.)
-
To use the module, first install with pip:
pip install isaac-lotr-sdk
-
If you haven't already, create a the-one-api.dev account and get an access token.
-
The access token is private, so it is recommended that this is stored in the environment variables and not in version control.
export THE_ONE_API_ACCESS_TOKEN=your_access_token_value
The name
THE_ONE_API_ACCESS_TOKENis arbitrary and this SDK does not impose any rules on what the environment value name should be. -
In your python script/application, import the API client and start making requests:
# Import the API client from lotr_sdk import LotrSDK # Import the python os module to get the environment variable import os # Get the API access token from the environment variables. ACCESS_TOKEN = os.getenv("THE_ONE_API_ACCESS_TOKEN") # Initialize the API client the_one_api_client = LotrSDK(access_token=ACCESS_TOKEN) # Start making requests all_movies = api_client.movie.getMovies() # Most endpoints allow for declaring multiple parameters and custom queries low_budget_movies = api_client.movie.getMovies("budgetInMillions<100", limit=2)
SDK Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isaac_lotr_sdk-0.0.2.tar.gz.
File metadata
- Download URL: isaac_lotr_sdk-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8cf25cdc33ab0a08fa0e0fa724bc6f0f18dffcc98ecacfe06f3e8c3cb0ac31
|
|
| MD5 |
84035d1c1badb1f849db4d6acc10daba
|
|
| BLAKE2b-256 |
0161d0184c0f1c23fbe64a0b953914ab5a628761273e29fd6fa382848eea7df4
|
File details
Details for the file isaac_lotr_sdk-0.0.2-py3-none-any.whl.
File metadata
- Download URL: isaac_lotr_sdk-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
118e61766e6df9121f923cf4f89ffa1d5712770b30360a627fa625eb17d8f3b5
|
|
| MD5 |
31a1d73d65eaf4f5ba900cbb5e051155
|
|
| BLAKE2b-256 |
a90c1b4f55f5aee8bf8ed06310de73b640e484faa3a8f70abaf71ad885ead333
|