presstatic
This is a little CLI utility that helps deploying static websites to Amazon S3.
Usage
$> 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 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.
$> pstatic -http ~/projects/example.com
Templates
We use the awesome Jinja template engine.
Assets
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
bundles:
all_css:
filters: yui_css
output: static/css/packed.css
contents:
- static/css/style.css
- static/css/jquery.fancybox.css
all_js:
filters: yui_js
output: static/js/packed.js
contents:
- static/js/jquery-latest.min.js
- static/js/jquery.fancybox.pack.js
- static/js/app.js
TODO
Add Template support [DRAFT]
Add Asset support [DRAFT]
Add watcher support [DRAFT]
Upload only modified files [DONE]
Metadata
Release files for presstatic 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| presstatic-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for presstatic-0.1.0.tar.gz |
Release files / presstatic-0.1.0.tar.gz
| Download URL | presstatic-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65de73455975c8330a130eeb270b2b20da98a19f0e10b8343db3c3934b341ab5
|
|
BLAKE2b-256 checksum How to use checksums |
37915cd2b1cc135135136d22d1fc347da29b21fedae8ea8c578f507e5dd4d4ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for presstatic 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.