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:
poetry shell
Note:
Make sure to always activate the environment when you start working on the project in a new terminal using
poetry shell
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
File details
Details for the file fastapi_serviceutils-2.1.0.tar.gz
.
File metadata
- Download URL: fastapi_serviceutils-2.1.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e024b0e3c771fec32e48f07d489bd359b8abbffee3e6f03ad4913ac00869e6c6 |
|
MD5 | 92fcbe35cd0ac6bb7c96b61028b31a52 |
|
BLAKE2b-256 | cb0e489052c65bb43f2617578d9df97174f13e1501b24d247d0f8279584a72ba |
File details
Details for the file fastapi_serviceutils-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: fastapi_serviceutils-2.1.0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6058fc39bd93b9081f4858f0377d36608c43c5892b765166acee2fe0ccf15e7a |
|
MD5 | a2e17cf20bf51849351dc9e5d88ea434 |
|
BLAKE2b-256 | e9f7111805746c9181bc28adc09a0818f4e30067fe8d8325bf7ff96ed34f674b |