newtheatre / nthp-api

💽 API generator for the History Project
MIT License
0 stars 1 forks source link

History Project API Generator

This project generates a JSON API from the history-project content repository. It does that in two steps:

Endpoints

Usage

From source

From PyPi

Alternatively you can run nthp build to run both steps in one go.

Contributing

pre-commit hooks

pre-commit hooks are used to lint the source code using Black and ruff

Tests

Run pytest or use the included PyCharm run configuration.

Release

See the bin/release.sh script for the release process. This assumes that your local machine has the correct credentials to publish to PyPi.