Skip to main content

Scripts to help provision, configure and deply towebfaction using Python and Fabric 2

Project description

Webfaction fabric2 helper scripts

These scripts utilise the `Webfaction
API <>`__ via python and `Fabric
2 <>`__ to conveniently run some common tasks.

Presently there are just a small selection, mostly related to managing
letsencrypt certificates.


You could install this in your system python3, into your virtualnv or
into your pipenv as a dev dependency

$ pipenv install –dev webfaction_fab2


Generate a in the root of your project, something like this:

$ pipen run python -m wf_fab2.makefab

And then start using the commands

$ pipenv run fab -l


Loading .env environment variables...
Available tasks:

Available tasks:

acme-install Install for Letsencrypt certificates on a webfaction host.
check-websites Check http response mode of all configured websites.
list-websites List all websites their linked apps and subdomains.
secure-website Issue certificates for a website and install with acme_webfaction


$ pipenv run fab -H check-websites accountname


Loading .env environment variables...
API password:
/Users/mjoakes/.local/share/virtualenvs/webfaction_helpers-RUB6JD7n/lib/python3.6/site-packages/urllib3/ InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See:
Available: Invalid Certificate


$ pipenv run fab -H list-websites accountname


API password:
example_site_name [['exampleapp', '/']] ['', '']
anotherexample_site_name [['anotherexampleapp', '/']] ['', '']


$ pipenv run fab -H ssecure-website accountname



I had a pretty comprehensive and well tested set of scripts for fabric
1.x enabling provisioning and deploying django projects onto webfaciton
hosts. As I slowly move them to fabric2 I’m intending to share them

Project details

Download files

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

Files for webfaction-fab2, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size webfaction_fab2-0.0.3.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page