Current collected state Current
Observed since 20 Oct, 17:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AaronBlaser-SDK
SDK for the lord of the rings API
pip install AaronBlaser-SDK==1.0.1
from lordoftherings import LordOfTheRings
api = LordOfTheRings('YOUR API TOKEN')
all_movies = api.movies().get_all().fetch()
movie = api.movies("5cd95395de30eff6ebccde56").get()
movie_quotes = api.movies("5cd95395de30eff6ebccde5b").quotes.get_all().fetch()
quotes = api.quotes().get_all().fetch()
single_quote = api.quotes("5cd96e05de30eff6ebccebc9").get()
match = api.movies().get_all().filter_by(name='The Lord of the Rings Series').fetch()
negate_match = api.movies().get_all().filter_by(name=('not', 'The Lord of the Rings Series')).fetch()
include = api.movies().get_all().filter_by(name=['The Lord of the Rings Series', 'The Desolation of Smaug']).fetch()
exclude = api.movies().get_all().filter_by(name=[('not', 'The Lord of the Rings Series'), ('not', 'The Desolation of Smaug')]).fetch()
less_than = api.movies().get_all().filter_by(budgetInMillions=('<', 100)).fetch()
greater_than = api.movies().get_all().filter_by(runtimeInMinutes=('>', 160)).fetch()
sorted_movies = api.movies().get_all().sort_by("name:asc").fetch()
paged_movies_1 = api.movies().get_all().limit(2).fetch()
paged_movies_2 = api.movies().get_all().limit(3).page(2).fetch()
paged_movies_3 = api.movies().get_all().limit(1).page(1).offset(1).fetch()
filter_sorted_paged = api.movies().get_all().limit(5).filter_by(name=('not', 'The Lord of the Rings Series')).sort_by('name:asc').fetch()
There is a file called test_lordoftherings.py in the tests folder that has some unit tests in it. Run this file to run the tests
self.auth_token = 'YOUR API TOKEN'
There is a file called test_usage.py in the tests that has many examples of how you can use this SDK. Add your auth token and uncomment the examples you want to run, then run the file.
api = LordOfTheRings('YOUR API TOKEN')
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
certifiEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | certifi (==2023.5.7) | runtime |
charset-normalizerEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | charset-normalizer (==3.1.0) | runtime |
idnaEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | idna (==3.4) | runtime |
requestsEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | requests (==2.31.0) | runtime |
urllib3Environment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | urllib3 (==2.0.2) | runtime |
bdist_wheel · 7.22 KB · Python py3
sdist · 6.01 KB · Python source
Observed since 20 Oct, 17:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:102992a06ec8285adb1a6f4d334c7db6870d620da21dfbcf5749f838d2e0f862