mo-fabric
A façade atop fabric2
Overview
I have revisited Fabric (September 2018) to find it can handle multiple threads and multiple connections! This is great news: it 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
stdoutandstrerrfrom the remote machine is annotated, and shunted, to 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, use_sudo=False)- allows you to use tilde (~) on Windows to refer to home directoryput(local, remote, use_sudo=False)- similar toget, except copies files to remotesudo(command)works with thecd()context managerResult.__contains__()so checking for patterns in command output is simpler:result = conn.run("ls /data1", warn=True) not_found = "No` such file or directory" in result
Metadata
Release files for mo-fabric 3.30.19346
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 | |
|---|---|---|---|---|
| mo-fabric-3.30.19346.tar.gz | 4.2 kB | Without provenance | Details |
Release files / mo-fabric-3.30.19346.tar.gz
| Download URL | mo-fabric-3.30.19346.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61f89c2e102e03c07b7e46e50ce8de795c9f16511c04030f477cc4ede6e460d2
|
|
BLAKE2b-256 checksum How to use checksums |
92eff2a6a95b242f3cb1bda69e84b2d9afe49a3b52961af1d37c4705d36db1a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.16
|
Security for mo-fabric 3.30.19346
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.