An open API service indexing awesome lists of open source software.

https://github.com/u2d-ai/msafeature

msaFeature - Feature switch management with conditions or simple decorators Optimized for use with Starlette/FastAPI/Pydantic.
https://github.com/u2d-ai/msafeature

fastapi feature-flags feature-management microservices python3

Last synced: 2 months ago
JSON representation

msaFeature - Feature switch management with conditions or simple decorators Optimized for use with Starlette/FastAPI/Pydantic.

Awesome Lists containing this project

README

          


msaFeature Logo

------


msaFeature - Feature switch management with conditions or simple decorators


Optimized for use with Starlette/FastAPI/Pydantic.


Allows to create feature switches and to setup conditions those switches will be enabled
for. Once configured, switches can then be checked against inputs (requests, user objects, etc) to see if the switches are active/enabled.



Package version


Supported Python versions

------

**Documentation**: msaFeature Documentation (https://msaFeature.u2d.ai/)

------

## Features
This library includes two versions for FastAPI Feature Flags Management:

- **Simple**: Just a decorator and configuration with json from a file, dict or via url.
- **Complex with Switch & Conditions**: Complex version with switches and conditions based on your pydantic model and their business logic.

## License Agreement

- `msaFeature`Based on `MIT` open source and free to use, it is free for commercial use, but please show/list the copyright information about msaFeature somewhere.

## How to create the documentation

We use mkdocs and mkdocsstring. The code reference and nav entry get's created virtually by the triggered python script /docs/gen_ref_pages.py while ``mkdocs`` ``serve`` or ``build`` is executed.

### Requirements Install for the PDF creation option:
PDF Export is using mainly weasyprint, if you get some errors here pls. check there documentation. Installation is part of the msaFeature, so this should be fine.

We can now test and view our documentation using:

mkdocs serve

Build static Site:

mkdocs build

## Build and Publish

Build:

python setup.py sdist

Publish to pypi:

twine upload dist/*