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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | eec763b5547baf6809decb0fca1787186448f2d4b838fa44674146791676f5e9 |
|
MD5 | a9847a07240777af39ad0a0333f490e0 |
|
BLAKE2b-256 | 88ca08d271836a0189d568a7876d5fa15926d7f70330e962b9e3bd5c80c4da42 |
File details
Details for the file andrew_richards_sdk-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: andrew_richards_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 360cb6c090d648a1e56557f98261080cd7917e60ca5f24dd3cbb005b304b018a |
|
MD5 | ceb10b560bf7debf32019c7b058c6ef6 |
|
BLAKE2b-256 | 0a86f679e1227b95d7dd8c9b26ebfe08634dfbe5c136ea103d249851bdda3036 |