Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sunhailin-leo/fastapi_apollo_middleware

It based on fastapi(https://github.com/tiangolo/fastapi) and Project Apollo(https://github.com/ctripcorp/apollo)
https://github.com/sunhailin-leo/fastapi_apollo_middleware

apollo fastapi middleware

Last synced: 3 months ago
JSON representation

It based on fastapi(https://github.com/tiangolo/fastapi) and Project Apollo(https://github.com/ctripcorp/apollo)

Awesome Lists containing this project

README

        

fastapi_apollo_middleware



A FastAPI Middleware of Apollo(Config Server By CtripCorp) to get server config in every request.




Travis Build Status


Appveyor Build Status


Codecov


Package version


PyPI - Python Version



PyPI - Format


Contributions welcome


License

## πŸ“£ Info

A FastAPI Middleware of Apollo(Config Server By CtripCorp) to get server config in every request. Maybe is the best config server middleware of FastAPI extension.

## πŸ”° Installation

**Use pip**
```shell
$ pip install fastapi_apollo_middleware -U
```

## πŸ“ Example

Jump to example folder.[Example](https://github.com/sunhailin-Leo/fastapi_apollo_middleware/blob/main/example/fastapi_example.py)

## ⛏ Test the Code

### Integration Test

Use [Travis CI](https://travis-ci.org/) and [AppVeyor](https://ci.appveyor.com/) continuously integrated environmen.

### Code Style

Use [flake8](http://flake8.pycqa.org/en/latest/index.html) and [Codecov](https://codecov.io/) to improve the code quality.

## πŸ’‘ Author

* [@sunhailin-Leo](https://github.com/sunhailin-Leo)

## πŸ“ƒ License

MIT [Β©sunhailin-Leo](https://github.com/sunhailin-Leo)