Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.


presstatic is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)


This is a little CLI utility that helps deploying static websites to Amazon S3.


System Message: ERROR/3 (<string>, line 9)

Unknown directive type "code-block".

.. code-block:: shell

        $> pip install presstatic

        $> pstatic -h

        usage: presstatic [-h] [-http HOST:PORT] [-s3 bucket] directory

        positional arguments:
                directory        directory containing the static website.

        optional arguments:
                -h, --help       show this help message and exit
                -http HOST:PORT  creates an HTTP Server with <directory> as root dir.
                -s3 bucket       deploy on the specified S3 bucket.

  • upload your website:

System Message: ERROR/3 (<string>, line 27)

Unknown directive type "code-block".

.. code-block:: shell

        $> export AWS_ACCESS_KEY_ID=<Your Key id>

        $> export AWS_SECRET_ACCESS_KEY=<Your Secret>

        $> pstatic -s3 example.com ~/projects/example.com

  • preview your website while you develop it:

    Any change in files/directories will trigger the builder. Because of this and other reasons this http server is intended for development only.

System Message: ERROR/3 (<string>, line 39)

Unknown directive type "code-block".

.. code-block:: shell

        $> pstatic -http ~/projects/example.com


We use the awesome Jinja template engine.


We are using webassets for asset bundling.

If you intend to use assets you need to add a configuration file (YAML) to your root project. Please see the webassets docs to see for more details.

Here's an example:

System Message: ERROR/3 (<string>, line 59)

Unknown directive type "code-block".

.. code-block:: yaml

        url: /static
        debug: True
                filters: yui_css
                output: static/css/packed.css
                    - static/css/style.css
                    - static/css/jquery.fancybox.css
                filters: yui_js
                output: static/js/packed.js
                    - static/js/jquery-latest.min.js
                    - static/js/jquery.fancybox.pack.js
                    - static/js/app.js


  • Add Template support [DRAFT]
  • Add Asset support [DRAFT]
  • Add watcher support [DRAFT]
  • Upload only modified files [DONE]

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.