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:
- Install Poetry
- Copy
.env.sample
to.env
then add your API key. - Create a virtual env
python -m venv .venv
- Activate venv
source .venv/bin/activate
- Install libraries
pip install -r requirements.txt
- Run Tests:
./test.sh
Release
Release packages to PyPI
poetry config pypi-token pypi-YYYYYYYY
poetry publish