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.28.18331.tar.gz
(3.8 kB
view hashes)