cryptic-game / microservice-python-template

A template for new python3 microservices

Home Page:https://cryptic-game.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microservice-python-template Coverage

A template for new python microservices

files to change

  • app.py (change microservice name and import endpoints from resources)
  • Pipfile and Pipfile.lock for new dependencies only
  • schemes.py for user endpoint requirements and responses
  • models/* for database models
  • resources/* for user and microservice endpoints
  • tests/* for unit tests
  • update microservice name and endpoints in tests/test_app.py
  • update microservice name in .github/workflows/

tests

When writing unit tests make sure to from mock.mock_loader import mock before importing anything from models or resources.

About

A template for new python3 microservices

https://cryptic-game.net

License:GNU Affero General Public License v3.0


Languages

Language:Python 88.6%Language:Shell 8.9%Language:Dockerfile 2.5%