Weir
Weir is a Python API for ZFS.
The API is loosely based on libzfs, but is intended to be more Pythonic rather than reproducing the C API exactly. Key differences include:
ZFS datasets are represented as objects.
send() and receive() return open files.
Weir is implemented on top of the command-line zfs and zpool commands for portability and so as to facilitate support for remote operation without requiring installation on the remote host.
Remote datasets can be specified with urls of the form zfs://user@host/path@snapname.
Installation
Requires Python 2.6, 2.7 or 3.4+.
To install Weir, simply:
$ pip install weir
Usage
eg to find a filesystem’s most recent snapshot:
>>> from weir import zfs
>>> zfs.open('zfs://backup.local/wanaka/test').snapshots()[-1].name
'zfs://backup.local/wanaka/test@auto-2015-04-08T145240'
License
Licensed under the Common Development and Distribution License (CDDL).
Metadata
Release files for weir 0.4.0
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 |
|---|---|---|---|---|
| weir-0.4.0.tar.gz | 5.2 kB | Without provenance | Details for weir-0.4.0.tar.gz |
Release files / weir-0.4.0.tar.gz
| Download URL | weir-0.4.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70c96c4d4d7aa7433a884a0c55ec250587cff309ec3c730270c2b4b15feba474
|
|
BLAKE2b-256 checksum How to use checksums |
444cce3d79f1ad9d6a4910d94e3c8e6073ba0957669308f6b312d80546a342de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for weir 0.4.0
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.