Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silvanmelchior/fastapi_confz_demo
A demonstration of how ConfZ can be used in a FastAPI application
https://github.com/silvanmelchior/fastapi_confz_demo
configuration-management confz fastapi python
Last synced: 14 days ago
JSON representation
A demonstration of how ConfZ can be used in a FastAPI application
- Host: GitHub
- URL: https://github.com/silvanmelchior/fastapi_confz_demo
- Owner: silvanmelchior
- License: mit
- Created: 2021-11-09T06:55:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-11T16:38:44.000Z (about 3 years ago)
- Last Synced: 2025-01-12T21:33:33.068Z (25 days ago)
- Topics: configuration-management, confz, fastapi, python
- Language: Python
- Homepage: https://blog.devgenius.io/seamless-fastapi-configuration-with-confz-90949c14ea12
- Size: 48.8 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [FastAPI](https://github.com/tiangolo/fastapi) & [ConfZ](https://github.com/Zuehlke/ConfZ) Demo
This repository shows how to use [FastAPI](https://github.com/tiangolo/fastapi)
& [ConfZ](https://github.com/Zuehlke/ConfZ) together. It is the code-base for a corresponding
[blog article](https://medium.com/@silvanmelchior/seamless-fastapi-configuration-with-confz-90949c14ea12).## Installation
Poetry is used for dependency management. To setup the repo, just run
```
poetry install
```in this directory.
## Run API
To run the API, first set the environment variable `DB_ENV` to `db_dev.yml`. Then navigate to the folder _
fastapi_confz_demo_ and run```
uvicorn app:app --reload
```You should now be able to experiment with the endpoints by opening http://localhost:8000/docs.
## Run Tests
To run the tests, just execute
```
pytest
```in this directory.