Skip to main content

Pruun is a CL utility for easily creating AWS lambda deployment packages within Python virtualenvs.

Project description

logo pruun

license python version

Pruun is a CL utility for easily creating AWS lambda deployment packages within Python virtualenvs. It was designed to work as a simple, out-of-the-box solution that can be integrated into any deployment pipeline.

NOTE: Supported OSs are Linux and MAC. Windows support is not fully tested at the moment.

Installation

Use the package manager pip to install pruun

pip install pruun

Usage

For the following usage examples, let's imagine this is simple directory structure:

.
├── requirements.txt
└── my_lambda_handler.py
$ pruun --help
Usage: pruun [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  package  Creates deployment package .zip file in current directory.
$ pruun package my_lambda_handler.py
Locating all installed packages...  [####################################]  100%          
Creating deployment package...
Finit!

Commands

pruun package [OPTIONS] handler_path

Usage: pruun package [OPTIONS] handler_path

  Creates deployment package .zip file in current directory.

  handler_path (str): Name of Lambda handler file/directory.  Trailing slash
  for a directory path is optional.

  package-file (str, optional): Desired filename of deployment .zip file.
  Defaults to "deployment_package.zip".

Options:
  --package-file PATH  Desired filename of deployment .zip file.
  --help               Show this message and exit.

Contributing

Set up the development environment by running make setup.

Before contributing a pull request, please make sure tests pass by running make test.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pruun-0.4.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

pruun-0.4.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page