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

Uploaded CPython 3.10+Windows x86-64

nessie_backend_core-0.3.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.3.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.3.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (504.7 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.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for nessie_backend_core-0.3.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 71670b39c9162982e745b5108f4187858f3e54fba425366feb4f4c7db68155fd
MD5 af1153f7fe110f67427c7b6d54ca5d30
BLAKE2b-256 6ccfd65753f54352e70deb2cd4f6dd490de66f93fd1d2e6e2633caf9934d0ff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nessie_backend_core-0.3.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a38a5bf446859a1f60e62fbee7061dbed91bc314d332e2508e22c8c623903749
MD5 fa0f328b835898315979fc52c5add357
BLAKE2b-256 a1c3aeba8203bd6f626a64bb63ec45e89f504412a6285495ae49eb2638dc26c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nessie_backend_core-0.3.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 699c7f475e6662e6923c55a85585c214de002a810a87ff7bc2ec807eeb285587
MD5 0065793b8bf89edfb0e5719246c8294c
BLAKE2b-256 07532e298c69a733245b000138fc155f060e608e79a453b6e69f7cd38c648e70

See more details on using hashes here.

File details

Details for the file nessie_backend_core-0.3.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.3.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 0f588d637b3b3c0c6bfde9e26c1e972a4ce9850a92534cfd5cbcf576e1e9df4d
MD5 8db0b99b79a2f2a19923e98b23b3d87f
BLAKE2b-256 84cd355d8129b48f1e1efcb655bdd8ccef7e16ada4191dd51de6cbd561db708c

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