Skip to main content

Python module and CLI to package and upload python lambda functions to AWS Lambda.

Project description

Python module and CLI to package and upload python lambda functions to AWS Lambda

Installation

pip install python-mu

Configuration

You will need to have a boto profile created. This can be done using awscli:

pip install awscli
aws configure

Usage

usage: mu [-h] [--with-pyc] [--zip-file ZIP_FILE] [--profile PROFILE]
          [--zip-only]
          [config]

positional arguments:
  config               JSON file describing this lambda function. Default
                       lambda.json

optional arguments:
  -h, --help           show this help message and exit
  --with-pyc           Package pyc/pyo files
  --zip-file ZIP_FILE  Name to give ZIP file. Default lambda.zip
  --profile PROFILE    boto/awscli profile name. Default default
  --zip-only           Only create the ZIP file, do not upload

lambda.json

{
    "name": "helloworld",
    "description": "Hello, World!",
    "region": "us-east-1",
    "role": "arn:aws:iam::000000000000:role/lambda_basic_execution",
    "handler": "helloworld.lambda_handler",
    "memory_size": 128,
    "timeout": 3,
    "py_modules": [
        "helloworld"
    ],
    "packages": {
        "exclude": [
            "tests",
            "tests.*"
        ]
    },
    "deps": [
        "requests",
        "-rrequirements.txt"
    ],
    "publish": true
}

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

python-mu-1.0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_mu-1.0.1-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-mu-1.0.1.tar.gz.

File metadata

  • Download URL: python-mu-1.0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-mu-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ae0dd0c9d874feac8255545a500bcfeedb42b560ede1a4eec19620e94d2537d0
MD5 69a45a7d4537c017bd41f09958f52443
BLAKE2b-256 b18182d72189d28f29ccdb41aa9636a640b4936808bf811f9bfe53534d53d514

See more details on using hashes here.

File details

Details for the file python_mu-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_mu-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c1ae9e733bf8d9ce6129a1f4755a225fe0228ac611bb8e7659384925414b88b
MD5 04e54e4dc4b44ec66ef2f429331e0051
BLAKE2b-256 2e8af5243ff71d8c2ebd4a9458028deca7af08422daeaf3de4997a21be04d02e

See more details on using hashes here.

Supported by

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