Skip to main content

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 Ruff

ruff check

Deployment

Github actions auto creates and pushes releases to PyPi on creating a tag/release.

Manual

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


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.19.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comicbot_api-0.1.19-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file comicbot_api-0.1.19.tar.gz.

File metadata

  • Download URL: comicbot_api-0.1.19.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for comicbot_api-0.1.19.tar.gz
Algorithm Hash digest
SHA256 157de6678d3fc503defde9a021b2eed41b374cae589c64eace9a7aa63ebdfa79
MD5 0a14dca7668edb69ea7a87036cb67a0a
BLAKE2b-256 40a9deae6c61055fb66c30cda2659c3a6edb4b8264e986b95f915b9e20f02427

See more details on using hashes here.

Provenance

The following attestation bundles were made for comicbot_api-0.1.19.tar.gz:

Publisher: publish.yml on aaronsteed/comicbot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comicbot_api-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: comicbot_api-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for comicbot_api-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 45b6214e71cfdb4cc94e34b025002b835cec530a46dd74f2e2aab7b3afe0892c
MD5 0eb057b1a9ca909e8edfcbb400dacad0
BLAKE2b-256 c308b5f76c2e96377991a4084bcc05406be56cc7462a9ebdf46a637dfca0a37b

See more details on using hashes here.

Provenance

The following attestation bundles were made for comicbot_api-0.1.19-py3-none-any.whl:

Publisher: publish.yml on aaronsteed/comicbot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page