https://github.com/skallfass/fastapi_serviceutils
Utils for fastapi based services.
https://github.com/skallfass/fastapi_serviceutils
fastapi python rest
Last synced: 2 months ago
JSON representation
Utils for fastapi based services.
- Host: GitHub
- URL: https://github.com/skallfass/fastapi_serviceutils
- Owner: skallfass
- License: mit
- Created: 2019-10-20T18:06:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T07:36:48.000Z (over 3 years ago)
- Last Synced: 2025-02-08T08:36:41.494Z (2 months ago)
- Topics: fastapi, python, rest
- Language: Python
- Size: 222 KB
- Stars: 34
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fastapi - FastAPI ServiceUtils - Generator for creating API services. (Third-Party Extensions / Utils)
- awesome-fastapi - FastAPI ServiceUtils - Generator for creating API services. (Third-Party Extensions / Utils)
README

[](https://pypi.python.org/pypi/fastapi-serviceutils/)
[](https://pypi.python.org/pypi/fastapi-serviceutils/)
[](http://fastapi-serviceutils.readthedocs.io/?badge=latest)

## Installation
```bash
pip install fastapi-serviceutils
```## Usage
For more details and usage see: [readthedocs](https://fastapi-serviceutils.readthedocs.io/en/latest/)
## Development
### Getting started
After cloning the repository initialize the development environment using:
```bash
make init
```This will create the dev environment exampleservice/dev. Activate it using:
```bash
poetry shell
```**Note:**
Make sure to always activate the environment when you start working on the
project in a new terminal using
```bash
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:
```bash
make update
```### Checking with linters and checkers
To run all pre-commit-hooks manually run:
```bash
make check
```### Info about project-state
To show summary about project run:
```bash
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:
```bash
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](http://doc.pytest.org/en/latest/).
To run all tests:```bash
make tests
```