A LOTR API SDK
Project description
The Lord Of The Rings SDK
A SDK built upon The One API (https://the-one-api.dev/) written in Python.
Installation
pip install evd-sdk-lotr==0.0.3
Usage
To use the SDK, get an Access Token from https://the-one-api.dev/sign-up. Once installed and the Access Token is obtained, you can start using the SDK by following the below:
Using the SDK
Chapter Data
from evd_sdk_lotr.chapters import Chapters
chapters = Chapters('YOUR_API_KEY')
# Lists of all book chapters
chapters.get_all_book_chapters()
# Request one specific book chapter
chapters.get_book_chapter_by_id('6091b6d6d58360f988133bc5')
Book Data
from evd_sdk_lotr.books import Books
books = Books('YOUR_API_KEY')
# Lists of all "The Lord of the Rings" Books
books.get_books()
# Request one specific Lord of the Rings book by ID
books.get_book_by_id('5cf58077b53e011a64671583')
# Request all chapters of one specific book
books.get_book_by_id('5cf58077b53e011a64671583')
Character Data
from evd_sdk_lotr.chracters import Characters
characters = Characters('YOUR_API_KEY')
# Lists of all characters including metadata like name, gender, realm, race and more
characters.get_all_characters()
# Request one specific character by id
characters.get_character_by_id('5cd99d4bde30eff6ebccfbed')
# Request all movie quotes of one specific character
characters.get_quotes_by_character_id('5cd99d4bde30eff6ebccfbed')
Movie Data
from evd_sdk_lotr.movies import Movies
movies = Movies('YOUR_API_KEY')
# List of all movies including "The Lord of the Rings" and the "The Hobbit" trilogies
movies.get_movies()
# Request one specific movie by id
movies.get_movie_by_id('5cd95395de30eff6ebccde56')
# Request all movie quotes for one specific movie (only working for LOTR Trilogy)
movies.get_all_quotes_by_movie('5cd95395de30eff6ebccde5c')
Quote Data
from evd_sdk_lotr.quotes import Quotes
quotes = Quotes('YOUR_API_KEY')
# List of all movie quotes
quotes.get_all_movie_quotes()
# Request one specific movie quote
quotes.get_movie_by_id("5cd96e05de30eff6ebccebce")
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
evd_sdk_lotr-0.0.4.tar.gz
(3.9 kB
view details)
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 evd_sdk_lotr-0.0.4.tar.gz.
File metadata
- Download URL: evd_sdk_lotr-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3398c67f116a1b9cd6cd75488f19f10a09d19c65ae94251d3aa0fcd0af2dffd
|
|
| MD5 |
2fe55d8a2a0387b150767a67e5099337
|
|
| BLAKE2b-256 |
78fdf918bc806882846c3b304f5e5bec69435ad322ca792e332a860b33e0cf79
|
File details
Details for the file evd_sdk_lotr-0.0.4-py3-none-any.whl.
File metadata
- Download URL: evd_sdk_lotr-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4666772d0e6337c50ebbef3890f59f25911517752b07326ff06b3c78bd90fbff
|
|
| MD5 |
d985fd214fd56d597f63a8f20d5bbf03
|
|
| BLAKE2b-256 |
3cbf6f4369a57d57fac12a48f583e29510855881b4136810a7dfd5ea316a6ad6
|