Skip to main content

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:

  1. To use the module, first install with pip:

    pip install isaac-lotr-sdk
    
  2. If you haven't already, create a the-one-api.dev account and get an access token.

  3. 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_TOKEN is arbitrary and this SDK does not impose any rules on what the environment value name should be.

  4. 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)

Source distribution for isaac-lotr-sdk 0.0.2
File Size Uploaded
isaac_lotr_sdk-0.0.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for isaac-lotr-sdk 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page