Skip to main content

No project description provided

Project description

Lord of the Rings SDK

This is a sample SDK as a take home assessment for liblab

Install

  • pip install jackofspades_lib_lab_lotr

Example uses:

from lotr_sdk import Book, Movie
# Get all books
books = Book.get()

# Get a certain book
id = "5cf5805fb53e011a64671582"
book = Book.get(id)

# Get all movies
movies = Movie.get()

# Get a certain movie
id = "5cd95395de30eff6ebccde56"
movie = Movie.get(id)

# Get all quotes from a movie
movie = Movie.get(id)
quotes = movie.quotes

# And so on...

Testing:

  • Install pytest python -m pip install pytest
  • run bash test.sh
  • or run python -m pytest tests from the projects root directory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

jackofspades_lib_lab_lotr-0.1.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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