Skip to main content

ZappaDock

Downloads

Install

It's dead simple :

$ pip install zappadock

Usage

  1. Check that the Docker daemon is running by typing docker info command from a terminal.

  2. Set your AWS credentials in environmental variables or in the ~/.aws folder. See the Amazon Docs for more information.

  3. Run zappadock in the directory you wish to run your Zappa commands.
    Your directory will be loaded in a docker container, and a virtual environment will be created and activated.

  4. To run the built-in servers:

  • Django:
    python manage.py runserver 0.0.0.0:8000
  • Flask:
    flask run --host=0.0.0.0 --port=8000

If you have any problems, open a issue and we'll figure it out.

About

This package makes dealing with Zappa a walk in the park.

How ?

Zappa runs Flask/Django web apps on AWS Lambda.
We LOVE Zappa. However it's not the MOST user-friendly application ever.

Why ?

You see, Zappa builds all your requirements before uploading your app to AWS Lambda. However, pip downloads the packages that are compatible with the computer it is running on, so when Zappa uploads it to AWS Lambda, many packages don't work (notably psycopg2 among others).

What's the solution ?

The solution recommend by the The Django Guide for Zappa is to run your Zappa commands in a docker container similar to the one that AWS Lambda uses.
This will ensure that all the dependencies will be AWS Lambda compatible. This ZappaDock streamlines the workflow.

What Does ZappaDock Do ?

ZappaDock does 3 things.

  1. Run a docker container with your code mounted.
  2. Load your AWS Credentials from the ~/.aws folder and environmental variables into the container.
  3. Create and activate a virtual environment inside the container.

So now you can test and deploy your code confident that it will work once deployed.

Contributing

I mostly made this for myself. If you want to help make this a masterpiece, be a sport and contribute.
Thanks!

Release files for zappadock 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zappadock 0.1.10
File Size Uploaded
zappadock-0.1.10.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zappadock 0.1.10
File Interpreter ABI Platform
zappadock-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / zappadock-0.1.10.tar.gz

Download URL zappadock-0.1.10.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
92113872395aa1b87d9e7eb843fd08dd0ecd3d54086ea55b254e90d86180bbb9
BLAKE2b-256 checksum
How to use checksums
6985eb55e57d7f485a6da2c93a611e24cee928c2fa7b79ce5e793d9cd345fc49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / zappadock-0.1.10-py3-none-any.whl

Download URL zappadock-0.1.10-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f317a10a8d91c5b9178b00cae63b73a40969bec1ce6e236d4d8c0f05eee6ea03
BLAKE2b-256 checksum
How to use checksums
7a41e41507c675a8a8713aabc4d8c278d0b631ab477de27a3776fa8262ebf1ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page