Registry / devops / patchwork

patchwork

JSON →
library1.0.1pypypiunverified

Patchwork is a deployment and system administration library, powered by Fabric. It provides a set of functions for common operations like file transfer, directory management, and package management. Current version 1.0.1, released last in 2014; library is in maintenance mode (no updates since).

pip install patchwork
INSTALL
IMPORT
SIG · PATCHWORK
P
patchwork
devopspythonv1.0.1
Install
3.1s avg
Import
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 43.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.1s · import 0.000s · 43MB
42MB installed
● package 42MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rsync
from patchwork.transfers import rsync
from patchwork.transfers import rsync, download, upload
download
from patchwork.transfers import download
upload
from patchwork.transfers import upload

Example using Fabric Connection and patchwork's rsync function.

from fabric import Connection from patchwork.transfers import rsync c = Connection('user@host') rsync(c, '/local/path/', '/remote/path/')
Debug
Known issues
gotchapatchwork functions expect a `fabric.connection.Connection` object, not an old-style `env.host_string`. Using the deprecated API will fail.
fix
Use from fabric import Connection then Connection('host'). Refer to patchwork docs.
affects: >=1.0.0
deprecatedpatchwork has not been updated since 2014 and does not support Fabric 3 (which is incompatible). It works with Fabric 2.x only.
fix
Pin fabric<3 in your requirements.
affects: all
gotchaThe `patchwork.files` functions like `exists` and `is_link` often require sudo on remote hosts; failing to wrap in sudo will give Permission denied.
fix
Use `fabric.runners.Sudo` or set `c.sudo()` before calling patchwork functions.
affects: all
Upgrade
Version history
1.0.1latest on PyPI · released Jun 20, 2018
Audit
Dependencies
fabricrequiredCore dependency; patchwork uses Fabric's Connection for remote execution
Agent activity
12 hits · last 30 days
node
12
Resources
patchwork — pip install patchwork · libregistry