Skip to main content

A client to retrieve new releases of comic books, filterable by publisher and format.

Project description

ComicBot API

Python

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


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

Uploaded Source

Built Distribution

comicbot_api-0.1.15-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comicbot_api-0.1.15.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.19 Darwin/23.4.0

File hashes

Hashes for comicbot_api-0.1.15.tar.gz
Algorithm Hash digest
SHA256 a07fe9cb474006ad2938c640c73dd32ae38da5af4917d47484b5a6f4591a50d5
MD5 5d73ef263c7dc9e187b6d6b9fb0a30ce
BLAKE2b-256 b0a518319a984f0c5804674d2dad94e02a11a0460c1430a4640c2831a1002840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comicbot_api-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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

Hashes for comicbot_api-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 1742606d038595043d4d09f5f6ca501271050799946a321054643941b9df010c
MD5 cb0b31ba85243e53e86e5baa3e5ad21e
BLAKE2b-256 1fe81e7dff5765b5a3d6f5e15c9308d09dc6fb8896478e8c0f7a4134f3d21592

See more details on using hashes here.

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