Skip to content

python-microservices/microservices-scaffold

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3ffb93a · Oct 16, 2021
Sep 12, 2021
Nov 3, 2020
Sep 12, 2021
Oct 27, 2020
Nov 14, 2018
Jan 20, 2020
Oct 15, 2020
Oct 3, 2020
Nov 14, 2018
Sep 30, 2020
Nov 3, 2020
Nov 3, 2020
Mar 24, 2018
Oct 27, 2020
Sep 12, 2021
Oct 3, 2020
Oct 3, 2020
Sep 12, 2021
Sep 12, 2021
Jan 21, 2020
Sep 12, 2021
Oct 16, 2021
Oct 27, 2020
Sep 12, 2021
Sep 12, 2021
Sep 12, 2021

Repository files navigation

microservices-scaffold

Python package Build Status Coverage Status Requirements Status Updates Python 3

Python Microservice Scaffold is an example of how to structure a Flask Microservice Project. This Scaffold is build over PyMS package. PyMS is a Microservice chassis pattern like Spring Boot (Java) or Gizmo (Golang). PyMS is a collection of libraries, best practices and recommended ways to build microservices with Python which handles cross-cutting concerns:

  • Externalized configuration
  • Logging
  • Health checks
  • Metrics
  • Distributed tracing

Quickstart

We recommended use Poetry to install the dependencies

Start with poetry

pip install --user poetry
poetry update
poetry run python manage.py

Start with a virtualenv

pip install -r requirements.txt
python manage.py

Open http://127.0.0.1:5000/ui/ and play with swagger

See our quickstart webpage

Dependencies

Updated dependencies in a requirements.txt with:

poetry export --dev -f requirements.txt --output requirements.txt

How To contribute

We appreciate opening issues and pull requests to make PyMS even more stable & useful! See This doc for more details