Hemp
Environment aware configuration and tools for Fabric.
Installation
pip install hemp
What is Hemp
Usage
Differences from Fabric
Fabfile location
Hemp files
Default stages
Consider these samples:
hemp development [task]
hemp on:development [task]
will ultimately result in development stage to be used.
Sample environment configuration
hemp:
environments:
staging:
roles:
web: ['web0.host.com']
db: ['web0.host.com']
production:
roles:
web: ['web1.host.com', 'web2.host.com', 'web3.host.com', 'web4.host.com']
db: ['web1.host.com']
development:
roles:
web: ['web5.host.lan']
db: ['web5.host.lan']
# [...]
Loading the hosts and roledefs
env.hosts = ['web0.host.com']
env.roledefs['web'] = ['web0.host.com']
env.roledefs['db'] = ['web0.host.com']
Host and role definition merging
Additional env settings
All root keys of the hemp.yml file will be loaded into Fabric’s env dictionary. For example, having configuration like
hosts: ['a.com', 'b.com']
hemp: [
# ...
]
will result in env.hosts to be populated with a.com and b.com
License
Licensed under terms and conditions of Apache 2.0 license.
Metadata
Release files for Hemp 0.1.9
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 |
|---|---|---|---|---|
| Hemp-0.1.9.tar.gz | 11.6 kB | Without provenance | Details for Hemp-0.1.9.tar.gz |
Release files / Hemp-0.1.9.tar.gz
| Download URL | Hemp-0.1.9.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3804f7537197424da3fc0a4d4a8fa89553d8770f3de97d7db0a93488d44d372f
|
|
BLAKE2b-256 checksum How to use checksums |
119a27ffda6e48e3d150d70f745c31edc81c58d5a0c0123ad37c820488675c84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for Hemp 0.1.9
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.