Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Deploy static websites to Amazon S3 easily.

Project Description


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


$> 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:
$> export AWS_ACCESS_KEY_ID=<Your Key id>

$> export AWS_SECRET_ACCESS_KEY=<Your Secret>

$> pstatic -s3 ~/projects/
  • 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.

$> pstatic -http ~/projects/


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:

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]
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
presstatic-0.1.0.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Feb 8, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting