SDK creation project
Project description
LOTR SDK
This SDK provides an easy way to integrate the API endpoints of The One API. More information about the API can be found here: https://the-one-api.dev/documentation
Notice
This current version of the SDK does not currently support additional options like pagination, filtering, or sorting
Usage
Download the sdk using pip
pip install lotr-one
Import the SDK client into your project
from lotr-one import client
Create a LOTR client and assign it to a variable
lotr = LOTR()
Start making calls
lotr.get_book()
Supported Functions
Some routes on the API provide the ability to get second-level data. For example, all the chapters from a specific book. This second-level data can be accessed by passing True along with the ID of the requested record. The functions to which this applies are outlined below.
| Function | (Parameter=default) |
|---|---|
| get_book | (id=None, chapter=False) |
| get_movie() | (id=None, quote=False) |
| get_character | (id=None, quote=False) |
| get_quote | (id=None, quote=False) |
| get_character | (id=None) |
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 lotr-one-0.0.1.tar.gz.
File metadata
- Download URL: lotr-one-0.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0488ed70e6fa18fcd2228552543a4e82389ef5dce196517177c77fd2ca496589
|
|
| MD5 |
cca3f9f8afde7bca1bf0d09bbecc9c67
|
|
| BLAKE2b-256 |
848f38d347a1ae6d417203afe7669d04a5f77b30a586598d449cc55a2b4ea18c
|
File details
Details for the file lotr_one-0.0.1-py2-none-any.whl.
File metadata
- Download URL: lotr_one-0.0.1-py2-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d541e97af4df318b262f13de50fb9dc6845ca2b9a14b11a8b94d42d3f583e1b
|
|
| MD5 |
a5d8ebcc8655fde27da77ca1dc2f9169
|
|
| BLAKE2b-256 |
06ec38e2d1f314c035a010500c251c3dc4aa0e712f480e61c9a5aafc42e3eac1
|