A client to retrieve new releases of comic books, filterable by publisher and format.
Project description
ComicBot API
Requirements
- Python 3.9 or above
- Virtualenv 20.14.1 or above
Project Expectations
- Client library to get new releases, or releases for a given date.
- Client can filter by the format of releases e.g. 'single-issue' or by publisher e.g. 'marvel'
- Client should be straight forward and easy to use by using the KISS model (Keep It Simple Stupid)
- Cache results where possible as not to hit provider with too many requests for the same data
How to get started
Create a virtual environment
virtualenv -p python3.9 venv
Enter virtual environment
source venv/bin/activate
Install Poetry, the package manager for this project
pip install poetry
Build distribution of project
poetry build
Build artifacts will be located in dist/
Running Unit Tests
Pytest to run all unit tests in test/
pytest
Pytest to run all unit tests and lint code with Pylama
pytest --pylama
Linting
This project strives to keep the code style in line with PEP8. To test the project for compliance with PEP8, I use Pylama
pip install pylama
pylama comicbot_api
Deployment
To deploy, one must obtain an API key from the public pypi (https://pypi.org/project/comicbot-api/)
and add it to the local poetry
configuration with the following command:
poetry config pypi-token.pypi <pypi-token>
Once we have a valid token, we can push distributions to PyPi.
poetry build
poertry publish
or do both with
poetry publish --build
Roadmap
- Database to cache results from source
- Sphinx Automatic Documentation Creation
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
comicbot_api-0.1.3.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file comicbot_api-0.1.3.tar.gz
.
File metadata
- Download URL: comicbot_api-0.1.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.19 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cdc47e7d6e8f2b33af7873c01e166b86f7709d77f710a22a79018a1257804cc |
|
MD5 | 7b04d0b430863ecd00e4f0f061a1b970 |
|
BLAKE2b-256 | 62d5504877ed62ae89bdcbdfbad39279df42f9c58e05f8f3a778857de871320b |
File details
Details for the file comicbot_api-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: comicbot_api-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.19 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16a67e486a49b35de014b7e4c30d1334880c349a0447ed0699dc01039fe872b6 |
|
MD5 | ec791599e2bb181a659077b3d6c854e9 |
|
BLAKE2b-256 | c1201d5bd99633c42fce75de4424a04bac097d612e645c1a9b0497b6ad1838f6 |