Thin facade over fabric
Project description
mo-fabric
A façade atop fabric
Overview
I have revisited Fabric (September 2018) to find it can handle multiple threads and multiple connections. This makes all my automation faster!
Like with most APIs, I made a façade because Fabric is not congruent to my own programming conventions. This is not bad, just different: The domain I work in is slightly different than what the Fabric developers expect.
Here are the differences:
- All
stdout
andstrerr
from the remote machine is annotated, and shunted, the the local logging module. - A few convenience methods are added:
conn.exists(path)
- to test if a remote file existswith conn.warn_only():
- context manager if you do not care if your commands failget(remote, local)
- allows you to use tilde (~
) on Windows to refer to home directoryput(local, remote, use_sudo=False)
- same asget
plus the ability to upload as rootsudo(command)
works with thecd()
context manager
- Added
Result.__contains__()
so checking for patterns in command output is simpler
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mo-fabric-2.29.19005.tar.gz
(3.9 kB
view details)
File details
Details for the file mo-fabric-2.29.19005.tar.gz
.
File metadata
- Download URL: mo-fabric-2.29.19005.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8880d8ab098ab62f3d127e548bf062083bc7383c7a27beaa33e134c786019ef7 |
|
MD5 | 60e7dafa33fb07b2fd6c3f4ac3a6a2fe |
|
BLAKE2b-256 | d2b8705d73f891d3f044199801cc96b63b6327b520dcb1e2a6b9938b6009c127 |