Skip to main content

Core domain vocabulary for nessie-store (ONTAP-on-ZFS) — PyO3 bindings.

Project description

nessie-backend-core

Core domain vocabulary for nessie-store — a cheap ONTAP on-ramp. This crate defines the substrate-neutral types and the VolumeBackend ⊂ SnapshotBackend ⊂ CloneBackend supertrait stack that every storage backend implements. The PyO3 bindings expose the domain vocabulary to Python so you can script against the system (the "outside" extension surface).

Install

pip install nessie-backend-core      # Python
cargo add nessie-backend-core        # Rust

Usage (Python)

import nessie_backend_core as core

# A request to create a 50 GiB volume.
spec = core.VolumeSpec("build-cache", size_bytes=50 * 2**30)
print(spec)                       # VolumeSpec(name="build-cache", size_bytes=...)

# Declare what a backend can do — and check the tiers are self-consistent.
caps = core.Capabilities(snapshots=True, clones=True)
assert caps.is_consistent()
assert caps.snapshots and caps.clones

# A sparse PATCH (resize + set the NFS junction).
patch = core.VolumePatch(size_bytes=100 * 2**30, junction_path="/build")
assert not patch.is_empty()

Usage (Rust)

use nessie_backend_core::{Capabilities, VolumeSpec};

let spec = VolumeSpec::named("build-cache");
assert!(Capabilities::clones().is_consistent());

Dual-licensed MIT OR Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nessie_backend_core-0.3.0-cp310-abi3-win_amd64.whl (154.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

nessie_backend_core-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (287.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

nessie_backend_core-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (284.6 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

nessie_backend_core-0.3.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (504.8 kB view details)

Uploaded CPython 3.10+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file nessie_backend_core-0.3.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for nessie_backend_core-0.3.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 332fcbf293232c5729c89d9f7f6b0d8d19982b1946dfabc18d7167e3b81abce9
MD5 9cf30af7b308348ae2b3e5a22225c532
BLAKE2b-256 5402f4f02b3810486aaad2ddb906a1532e2e02c503d9e4ef56eb1891e900677f

See more details on using hashes here.

File details

Details for the file nessie_backend_core-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for nessie_backend_core-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5109857599571ac04ee9956561f39ccad85b5245bf7547d660b149e22298a40
MD5 01ac03b33b37dc54d321a131a930b2a6
BLAKE2b-256 6bd2c7b65a8e2ff199ce1132a46587481506122a65340efc6cda2f751cd09e8b

See more details on using hashes here.

File details

Details for the file nessie_backend_core-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for nessie_backend_core-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7956489e9586596fe96d8c785490d97611a242280bcdbc3906b2d9c8752ec4ba
MD5 57c552e79bccb269cfbb02beeb373491
BLAKE2b-256 4cc41c53ef72bc3fa3718c1f998fd6432982f9dfd59de18e6da70d6132ce4f82

See more details on using hashes here.

File details

Details for the file nessie_backend_core-0.3.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for nessie_backend_core-0.3.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 c827ce326cc786a9a06ed8c3dce9564cf4ca0e243cf579d8fac4b5cb724a9218
MD5 ada2288beb5764cf472745300170ac1d
BLAKE2b-256 03705b277188b396a832128a831257ab464868b72a899f984820ddf44d6080e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page