PyMacaron

Star
Logo

A python microservice framework

Reference:

Overview
Get started
Write an API specification
Implement your API
Deploy to AWS
JWT authentication
Configuration
Error handling
Asynchronous execution
Database serialisation
Testing

Get Started

Install PyMacaron

pipenv install pymacaron
pipenv install pymacaron-aws
pipenv install pymacaron-async

Bootstraping

Bootstrap your project by cloning pymacaron-helloworld and installing its dependencies:

git clone git@github.com:pymacaron/pymacaron-helloworld.git
cd pymacaron-helloworld
pip install -r requirements.txt

Start the server locally

cd pymacaron-helloworld
python server --port 8080

Run acceptance tests

You run acceptance tests against the above server (started in a separate terminal) like this:

cd projectroot
run_acceptance_tests --local

Deploy

deploy_pipeline --push --deploy