This Cookiecutter project supports Best Practices for Using Python to Power Serverless Applications (Sponsor: Capital One). This session outlines lessons learned building, deploying, and operating AWS Serverless Python applications. Though Capital One uses AWS Lambda for many use cases, this example will create artifacts for deploying a simple HTTP API.
To get started, run the following sam init
command and respond to the prompts.
sam init --location git@github.com:mcnamarabrian/pycon2023
NOTE: Do not try to clone this project directly. The rendered project will be tailored based upon your responses to several prompts.
You will need to install prerequisites to work on the project itself and not the generated artifacts.
pipenv install --dev
The project makes use of the hackebrot/pytest-cookies project. There are unit tests that will allow you test the materialization of the template code. Tests are defined in tests/test_render.py.
pipenv run pytest -v