Skip to main content

Lord of the rings sdk in Python

Project description

Lord of the rings sdk

SDK for Lord of the rings api

Setup

Install

  pip install lord-of-the-rings-sdk

API Reference

Imports

  from lord_of_the_rings_sdk import LordOfTheRings
  # The first argument is the token
  api = LordOfTheRings(base_url='url to api', token='your token')

Get items example movie

  # Returns requests.models.Response object
  resp = api.movie()

  # Returns json object
  resp.json()

Get single item example quote

  # if the_id is specified it returns item with specified id
  resp = api.quote(the_id="id of the item")

  # Returns json object
  resp.json()

Get single movie with quate

  # if the_id is specified it returns item with specified id
  resp = api.quote(the_id="id of the item", extra_path='quote')

  # Returns json object
  resp.json()

Tests

  • Clone the repo

  • run 'test/name of test'

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

andrew-richards-sdk-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

andrew_richards_sdk-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file andrew-richards-sdk-0.0.1.tar.gz.

File metadata

  • Download URL: andrew-richards-sdk-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for andrew-richards-sdk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eec763b5547baf6809decb0fca1787186448f2d4b838fa44674146791676f5e9
MD5 a9847a07240777af39ad0a0333f490e0
BLAKE2b-256 88ca08d271836a0189d568a7876d5fa15926d7f70330e962b9e3bd5c80c4da42

See more details on using hashes here.

File details

Details for the file andrew_richards_sdk-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for andrew_richards_sdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 360cb6c090d648a1e56557f98261080cd7917e60ca5f24dd3cbb005b304b018a
MD5 ceb10b560bf7debf32019c7b058c6ef6
BLAKE2b-256 0a86f679e1227b95d7dd8c9b26ebfe08634dfbe5c136ea103d249851bdda3036

See more details on using hashes here.

Supported by

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