Utils for fastapi based services.
Project description
Installation
pip install fastapi-serviceutils
Usage
For more details and usage see: readthedocs
Development
Getting started
After cloning the repository initialize the development environment using:
make init
This will create the dev environment exampleservice/dev. Activate it using:
dephell venv shell --env devs
Note:
Make sure to always activate the environment when you start working on the project in a new terminal using
dephell venv shell --env devs
ATTENTION: the environment should also be activated before using make.
Updating dependencies
After each change in dependencies defined at pyproject.toml run the following to ensure the environment-definition and lock-file are up to date:
make update
Checking with linters and checkers
To run all pre-commit-hooks manually run:
make check
Info about project-state
To show summary about project run:
make info
Documentation
The project’s developer documentation is written using Sphinx.
The documentation sources can be found in the docs subdirectory.
The API-documentation is auto-generated from the docstrings of modules, classes, and functions. We’re using the Google docstring standard.
To generate the documentation, run:
make docs
The output for generated HTML files is in the docs/_build directory.
Tests
For testing we use pytest, for details see Pytest Docs. To run all tests:
make tests
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
Built Distribution
Hashes for fastapi_serviceutils-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72767238bd0cf474b7703e90448175a20e441bbd20821ba5db7856ab906ee03f |
|
MD5 | 2da4ebbaf317f4bbfc219e752e53ebec |
|
BLAKE2b-256 | 9bf5d71d460fe70c1856e30dc48a1ae08f3f38bf4c9b2d26e0218a7f61abce26 |
Hashes for fastapi_serviceutils-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f724bfa01e3fb386d8b9d025ab419c55376d266dbf297cac677c2c10a84b4d9 |
|
MD5 | 479afcea02e4e05ed13a12f2e8f1f226 |
|
BLAKE2b-256 | 5b1aabf0e0b1d56d6ae7df6f1882e6438eba1bb747e3fc1b71e5bbe1a6a2f568 |