Skip to content

marcelocure/python-config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Config Server

Config server written in python.

It has 2 endpoints available:

  • GET /config/{service name}
  • POST /config/refresh

How does it work?

On startup, it clones a git repository informed on config.py and caches its data locally

On GET /config/{service name}, it gets the config for the given service name on the local cache

On POST /config/refresh it does a git pull and populates cache

How to install?

pip install -r requirements.txt

How to run?

python src/api.py

How to run with docker?

Build image: docker build . -t configserver

Run docker run --net host <imageId here>

API will be available at: http://localhost:5050/

Releases

No releases published

Packages

No packages published