Build AWS Lambda deployment packages (zip files) for Python projects
Project description
paketoi
Paketoi is a command-line tool for building AWS Lambda deployment packages (zip files) for Python projects.
Assumptions
- The dependencies for your project are specified in a
requirements.txt
file.
Installation
pipx install paketoi
Usage
The basic usage is:
paketoi -r <path to requirements.txt> <path to output file>
You can find all the command-line options with paketoi --help
.
The source code is assumed to reside in the working directory.
Simple layout
.
├── lambda_function.py
└── requirements.txt
With the project layout like above, you can build a deployment package lambda.zip
like this:
paketoi -r requirements.txt lambda.zip
src
layout
.
├── requirements.txt
├── src
│ └── lambda_function.py
When your lambda source is under the directory src
, use -s src
to set the source root.
paketoi -r requirements.txt -s src lambda.zip
Excluding files
.
├── requirements.txt
├── lambda_function.py
└── tests
└── lambda_function_test.py
You can exclude files you do not need by using -E path
. For example:
paketoi -r requirements.txt -E tests lambda.zip
Alternatives
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paketoi-0.1.0.tar.gz
(19.4 kB
view hashes)
Built Distribution
paketoi-0.1.0-py3-none-any.whl
(23.5 kB
view hashes)