Wrapper for libzfs_core
Project description
This package provides a wrapper for libzfs_core C library.
libzfs_core is intended to be a stable interface for programmatic administration of ZFS. This wrapper provides one-to-one wrappers for libzfs_core API functions, but the signatures and types are more natural to Python. nvlists are wrapped as dictionaries or lists depending on their usage. Some parameters have default values depending on typical use for increased convenience. Enumerations and bit flags become strings and lists of strings in Python. Errors are reported as exceptions rather than integer errno-style error codes. The wrapper takes care to provide one-to-many mapping of the error codes to the exceptions by interpreting a context in which the error code is produced.
Unit tests and automated test for the libzfs_core API are provided with this package. Please note that the API tests perform lots of ZFS dataset level operations and ZFS tries hard to ensure that any modifications do reach stable storage. That means that the operations are done synchronously and that, for example, disk caches are flushed. Thus, the tests can be very slow on real hardware. It is recommended to place the default temporary directory or a temporary directory specified by, for instance, TMP environment variable on a memory backed filesystem.
Package documentation: http://pyzfs.readthedocs.org Package development: https://github.com/ClusterHQ/pyzfs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyzfs-0.2.3.tar.gz
.
File metadata
- Download URL: pyzfs-0.2.3.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3001dc63b7466f4e1730178f6df43467a606cfe5f1088a345ecc8259019b4063 |
|
MD5 | 3590456a75ec86a91c146d716cbc6ef8 |
|
BLAKE2b-256 | 6e0e785b6e3350bde69f24c4763e2ebc14c44016266304aea3c7f88ed40bee75 |
File details
Details for the file pyzfs-0.2.3-py2-none-any.whl
.
File metadata
- Download URL: pyzfs-0.2.3-py2-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb4dccd4286429fcb272abec3fb1fc58084351740213b00cbb8354486ee0459c |
|
MD5 | 6de9e864e515723cf2fd2876abe92c52 |
|
BLAKE2b-256 | 0cdad4e56fff0cf0d003e9abca43cbb71fe901fc3d9bfa58f116edcdae71d377 |