patleeman / liblab-takehome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LOTR SDK

https://liblab.com/take-home-project

Quickstart

Install the package:

pip install pl-liblab-lotr-sdk

Use the package:

from pl_liblab_lotr_sdk.api import Client

client = Client(api_key="<api_key>")
for movie in client.get_movie():
    print(movie.name)

Developing

To develop his library:

  1. Install Poetry
  2. Copy .env.sample to .env then add your API key.
  3. Create a virtual env python -m venv .venv
  4. Activate venv source .venv/bin/activate
  5. Install libraries pip install -r requirements.txt
  6. Run Tests: ./test.sh

Release

Release packages to PyPI

poetry config pypi-token pypi-YYYYYYYY
poetry publish

About

License:MIT License


Languages

Language:Python 98.0%Language:Shell 2.0%