=================================
These scripts utilise the `Webfaction
API <https://docs.webfaction.com/xmlrpc-api/>`__ via python and `Fabric
2 <http://www.fabfile.org/>`__ to conveniently run some common tasks.
Presently there are just a small selection, mostly related to managing
letsencrypt certificates.
Installation
------------
You could install this in your system python3, into your virtualnv or
into your pipenv as a dev dependency
$ pipenv install –dev webfaction_fab2
Usage
-----
Generate a fabfile.py 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 acme.sh 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 Web39.webfaction.com check-websites accountname
::
Loading .env environment variables...
API password:
Checking: https://example.com/
Available: https://example.com/
Checking: https://anotherexample.com/
/Users/mjoakes/.local/share/virtualenvs/webfaction_helpers-RUB6JD7n/lib/python3.6/site-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Available: https://anotherexample.com/ Invalid Certificate
..
$ pipenv run fab -H Web39.webfaction.com list-websites accountname
::
API password:
example_site_name [['exampleapp', '/']] ['example.com', 'www.example.com']
anotherexample_site_name [['anotherexampleapp', '/']] ['anotherexample.com', 'www.anotherexample.com']
..
$ pipenv run fab -H Web39.webfaction.com ssecure-website accountname
anotherexample_site_name
::
Development
-----------
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
here.
https://github.com/moaxey/wf_fab2
Metadata
Release files for webfaction-fab2 0.0.3
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 |
|---|---|---|---|---|
| webfaction_fab2-0.0.3.tar.gz | 5.9 kB | Without provenance | Details for webfaction_fab2-0.0.3.tar.gz |
Release files / webfaction_fab2-0.0.3.tar.gz
| Download URL | webfaction_fab2-0.0.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1add0a20880cb615eefb3896332b3068019005f988df1a795ec1ccb9f65b64c1
|
|
BLAKE2b-256 checksum How to use checksums |
882be3353fa065f2b2f058b954aa90f99989ad05f7ca9d654470165b4433957d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10
|
Security for webfaction-fab2 0.0.3
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.