Skip to main content

SDK Implementing https://the-one-api.dev API to serve information on all LOTR lore.

Project description

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

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

isaac_lotr_sdk-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isaac_lotr_sdk-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file isaac_lotr_sdk-0.0.2.tar.gz.

File metadata

  • Download URL: isaac_lotr_sdk-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic

File hashes

Hashes for isaac_lotr_sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ef8cf25cdc33ab0a08fa0e0fa724bc6f0f18dffcc98ecacfe06f3e8c3cb0ac31
MD5 84035d1c1badb1f849db4d6acc10daba
BLAKE2b-256 0161d0184c0f1c23fbe64a0b953914ab5a628761273e29fd6fa382848eea7df4

See more details on using hashes here.

File details

Details for the file isaac_lotr_sdk-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: isaac_lotr_sdk-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.8.10 Linux/5.15.0-67-generic

File hashes

Hashes for isaac_lotr_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 118e61766e6df9121f923cf4f89ffa1d5712770b30360a627fa625eb17d8f3b5
MD5 31a1d73d65eaf4f5ba900cbb5e051155
BLAKE2b-256 a90c1b4f55f5aee8bf8ed06310de73b640e484faa3a8f70abaf71ad885ead333

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page