nessie-ontap-protocol
ONTAP REST wire shapes — the HAL envelope, the {job,record,num_records} create
envelope, the simplified delete job, the always-success poll, and the
ONTAP-native {error:{code,message,target}} envelope — for
nessie-store. The PyO3
bindings let you assemble ONTAP-faithful response bodies from plain Python dicts.
Install
pip install nessie-ontap-protocol # Python
cargo add nessie-ontap-protocol # Rust
Usage (Python)
import nessie_ontap_protocol as proto
# Wrap your own record dict in ONTAP's create envelope.
volume = {"uuid": "…", "name": "build-cache", "state": "online"}
created = proto.create_response("job-1", volume)
# {"job": {"uuid": "job-1", "_links": {...}}, "record": {...}, "num_records": 1}
# A HAL collection, an error envelope, a delta duration.
coll = proto.hal_collection([volume], "/api/storage/volumes")
err = proto.error_envelope("404", "volume not found", "volume")
assert proto.iso8601_duration(3 * 3600 + 27 * 60 + 45) == "PT3H27M45S"
Usage (Rust)
use nessie_ontap_protocol::{CreateResponse, iso8601_duration};
let resp = CreateResponse::new("job-1", serde_json::json!({ "name": "vol1" }));
assert_eq!(iso8601_duration(45), "PT45S");
Dual-licensed MIT OR Apache-2.0.
Metadata
Release files for nessie-ontap-protocol 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 1.2 MB
Release files / nessie_ontap_protocol-0.4.4-cp310-abi3-win_amd64.whl
| Download URL | nessie_ontap_protocol-0.4.4-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 156.1 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d33182acd81f2a6ea1b586638e937265a40371d911f3ea72db4e16b3807de5a2
|
|
BLAKE2b-256 checksum How to use checksums |
fe28e6e8006d4be9a84055baddd3f6218e3f5a4c0536a3a2009bdd737252eca2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / nessie_ontap_protocol-0.4.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | nessie_ontap_protocol-0.4.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 279.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
074deb8a9220486e9a171088efba92468940bc45332cef2c352ed3502cf3d9ef
|
|
BLAKE2b-256 checksum How to use checksums |
13dd2a2367e8328e1510b64d5df6223a089e9f3bef426704c4924065b39fa589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / nessie_ontap_protocol-0.4.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | nessie_ontap_protocol-0.4.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 278.6 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a3998792decbd0d3517127ec2a5c7776eb98c8dc606fffe633438a2a447f2f12
|
|
BLAKE2b-256 checksum How to use checksums |
b8fc633ad0284a4309326eb3406267194d86a3221e27bb6c201c3c11b6551b5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / nessie_ontap_protocol-0.4.4-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
| Download URL | nessie_ontap_protocol-0.4.4-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
|---|---|
| Size | 500.4 kB |
| Tags | CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
22fd8e799577df590b15cd96805b10db3b4422c3fb762d60d172a15050e15601
|
|
BLAKE2b-256 checksum How to use checksums |
bc60d13268b96a3c97d0311a3a7a174f9f5ee30e4ecc611637dd9fe3ac6384bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for nessie-ontap-protocol 0.4.4
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.