Adding Python Projects
Seed makes it really easy to deploy Serverless Python projects. We support:
- Python 2.7, 3.6, 3.7, 3.8, 3.9, and 3.10.
- Unit tests using unittest
- Support for the serverless-python-requirements plugin
- Dependencies using pip & pipenv
Seed auto-detects the package manager. If a Pipfile
is found then pipenv will be used, And if requirements.txt
is found then pip will be used.
Non-Python modules usually need to be built on your local machine using a Docker image that targets the Lambda environment.
Seed automatically builds non-Python modules for the target Lambda environment without having to compile them locally.
If you are using the serverless-python-requirements plugin you can disable building modules locally by turning off the dockerizePip
setting.
custom:
pythonRequirements:
dockerizePip: false
We also have a Serverless Python 3.6 Starter, a Serverless Python 3.7 Starter, and a Serverless Pipenv Starter that you can use.
Help improve this page. Edit it with GitHub
Was this page helpful? Let us know via Twitter
Do your Serverless deployments take too long? Incremental deploys in Seed can speed it up 100x!
Learn More