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.2.1-cp310-abi3-win_amd64.whl (154.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

nessie_backend_core-0.2.1-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.2.1-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.2.1-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.2.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for nessie_backend_core-0.2.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 edc894800ee04b1458f5c6ba06ff09565bafc7fb19ab894c860b68011069fe98
MD5 02210b718a4f3d18e23a0bbad7cec861
BLAKE2b-256 fb666008b2cb1dcbc48bd5a793a1283100874f60e3eaa7e2d61bde9069c64b93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nessie_backend_core-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f054ad36737c95d01eee15ae957873f3e5946190569ad2f71d7e81f64552d8be
MD5 c54a532fd9fb70c4d029210b7a32d5c5
BLAKE2b-256 4f00d2d23a3111db3133ebf343892d3ef50107790f313b7daca7b24c1dddcc83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nessie_backend_core-0.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd2bdb2423d91844897f5435f5e13bbd0984e593fa91e57ff93ce2071ba1887d
MD5 82dcb075fa03705f17eb984c97a7a4ea
BLAKE2b-256 1d1bdea2af81778581970da49f122afe7c52699ba8d27ecf3d50f45d46b97fc1

See more details on using hashes here.

File details

Details for the file nessie_backend_core-0.2.1-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.2.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 2d67301f08245dbb6f7592cf2d7b14101313449bfe0c3ded28b39e0d4b1c386c
MD5 68fadeb72563e0f9ae298332e78ee238
BLAKE2b-256 10b7938558ef8c4aba81c0fca55de6134a92e172bd3c0e88a8459f1e77c42bcc

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