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
Release files for isaac-lotr-sdk 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| isaac_lotr_sdk-0.0.2.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| isaac_lotr_sdk-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / isaac_lotr_sdk-0.0.2.tar.gz
| Download URL | isaac_lotr_sdk-0.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef8cf25cdc33ab0a08fa0e0fa724bc6f0f18dffcc98ecacfe06f3e8c3cb0ac31
|
|
BLAKE2b-256 checksum How to use checksums |
0161d0184c0f1c23fbe64a0b953914ab5a628761273e29fd6fa382848eea7df4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic
|
Release files / isaac_lotr_sdk-0.0.2-py3-none-any.whl
| Download URL | isaac_lotr_sdk-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
118e61766e6df9121f923cf4f89ffa1d5712770b30360a627fa625eb17d8f3b5
|
|
BLAKE2b-256 checksum How to use checksums |
a90c1b4f55f5aee8bf8ed06310de73b640e484faa3a8f70abaf71ad885ead333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic
|