Lord Of The Rings SDK
Description: An SDK that makes it easy for developers to consume information about the Lord of The Rings trilogy.
SDK builds on an existing Lord of The Rings API
Tech Stack
Built using Python 3.10.5 (see .python-version file). External libraries are kept as minimal as possible
(see requirements.in file)
Installation
pip install lord-aubrey-of-the-rings
Run
Register and login here to get your access token.
Import the class LordOfTheRings and call the available methods, passing params where necessary. Example:
from lord_of_the_rings.endpoints import LordOfTheRings
client = LordOfTheRings(access_token='your_access_token')
client.get_books()
client.get_movies('5cd95395de30eff6ebccde5b')
client.get_characters('5cd99d4bde30eff6ebccfe2e', 'quote')
There are also the options of
Pagination:
client.get_characters(limit=2)
client.get_characters(page=3)
client.get_characters(offset=11)
Sorting:
client.get_books(sort='name:asc')
client.get_quotes(sort='dialog:desc')
and Filtering:
client.get_characters(name='Gandalf')
client.get_characters(race='Hobbit,Human')
Consult the API docs for more information
Exposed methods:
METHOD : PARAMETER(S)
get_books : identifier (optional), 'chapter' (optional, requires identifier)
get_movies : identifier (optional), 'quote' (optional, requires identifier)
get_characters : identifier (optional), 'quote' (optional, requires identifier)
get_quotes : identifier (optional)
get_chapters : identifier (optional)
Install (to run SDK locally)
Clone github repo and run the following code. It creates a fresh virtual environment (called .venv) and installs requirements
make setup
Install pip requirements / Sync requirements.in with requirements.txt
make pip_sync
Run tests
make runtest
Metadata
Release files for lord-aubrey-of-the-rings 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lord-aubrey-of-the-rings-0.1.0.tar.gz | 5.3 kB | Without provenance | Details for lord-aubrey-of-the-rings-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lord_aubrey_of_the_rings-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lord_aubrey_of_the_rings-0.1.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / lord-aubrey-of-the-rings-0.1.0.tar.gz
| Download URL | lord-aubrey-of-the-rings-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
523fcceaf5e663a0a465151ee2be54acbaa81b2b7cc6486d13d1eb2dbde1a931
|
|
BLAKE2b-256 checksum How to use checksums |
69f528f16e0286af38f035eb5373f98a095f1715b1d2c45bdeda681eaec978ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / lord_aubrey_of_the_rings-0.1.0-py3-none-any.whl
| Download URL | lord_aubrey_of_the_rings-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3cf690ad908f94b6ffa54a4dbcb3df9d3bd5c2372894cceaedea7983cbe10b8
|
|
BLAKE2b-256 checksum How to use checksums |
e96de0e1ea22899d87174d0ed40fcc4ea22de5405dafe39474ebf32af62f0919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for lord-aubrey-of-the-rings 0.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.