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

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: 12 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)