Description
Project description
AWS Lambda Python Packager
[![Checks][checks-shield]][checks-url]
An alternate way to package Python functions for AWS Lambda. Works cross-platform and cross-architecture if binary packages are available for all packages.
$ lambda-packager -h
usage: lambda-packager [-h] [--ignore-packages] [--update-pyproject]
[--python-version PYTHON_VERSION] [--architecture {x86_64,arm64}]
[--region REGION] [--verbose] [--zip-output [ZIP_OUTPUT]]
[--compile-python] [--use-aws-pyarrow] [--strip-tests] [--strip-libraries]
[--strip-python] [--strip-other] [--optimize-all]
pyproject_path output_path
AWS Lambda Python Packager
positional arguments:
pyproject_path Path to pyproject.toml
output_path Path to output directory
optional arguments:
-h, --help show this help message and exit
--ignore-packages Ignore packages that are already present in the AWS Lambda Python runtime
(default: False)
--update-pyproject Update pyproject.toml with the ignored packages (ignored if not --ignore-
packages) (default: False)
--python-version PYTHON_VERSION, -pyv PYTHON_VERSION
Python version to target (default: 3.9)
--architecture {x86_64,arm64}, -a {x86_64,arm64}
Architecture to target (default: x86_64)
--region REGION AWS region to target (default: us-east-1)
--verbose, -v Verbose output (may be specified multiple times) (default: 0)
--zip-output [ZIP_OUTPUT], -z [ZIP_OUTPUT]
Output zip file in addition to directory (default: False)
Optimization Options:
--compile-python Compile the python bytecode (default: None)
--use-aws-pyarrow Use AWS wrangler pyarrow (may result in smaller file size). Pulls from
https://github.com/awslabs/aws-data-wrangler/releases/ until it finds a
Lambda layer that includes the proper PyArrow version. (default: False)
--strip-tests Strip tests from the package
--strip-libraries Strip debugging symbols from libraries
--strip-python Strip python scripts from the package (requires --compile-python) (note,
may need to set an ENV variable of PYTHONOPTIMIZE=2) (default: False)
--strip-other Strip other files from the package ('.pyx', '.pyi', '.pxi', '.pxd', '.c',
'.h', '.cc')
--optimize-all, -O Turns on all size optimizations (equivalent to --strip-tests --strip-
libraries --ignore-packages --update-pyproject --strip-other). May be
specified multiple times. Second time will also enable --compile-python
--strip-python --use-aws-pyarrow (default: 0)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws-lambda-python-packager-1.0.2.tar.gz.
File metadata
- Download URL: aws-lambda-python-packager-1.0.2.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.13.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbb2cc8f01ae97fee88eae637b9a1ac2cdfcb83edffb78a80db4a929c918b6eb
|
|
| MD5 |
d18dbd8ce274f1569333cddaba8b344d
|
|
| BLAKE2b-256 |
9bbf90d7d11a97712a50cfc939c9a5187b0bc86031aa134dad16ce2ddb7b2b8d
|
File details
Details for the file aws_lambda_python_packager-1.0.2-py3-none-any.whl.
File metadata
- Download URL: aws_lambda_python_packager-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.13.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea71642ae3d62405c1d28879dc4558ee0c14d1e3043c0e9ce3124a5951b00fc3
|
|
| MD5 |
8a4eaabc01517ad9f4e6eb4ef6a654ba
|
|
| BLAKE2b-256 |
33cb37c5769bbe8a9d64c1a0832ecda3825e560c3b3d533e78f27419561e86d5
|