Skip to main content

Holonomy

Local Data Governance for High-Performance Analytics

PyPI License: BSL Docs

Holonomy is a Data Governance tool designed specifically for local data processing. It enables Data Scientists and Engineers to run high-performance local analytics on highly sensitive enterprise data while strictly enforcing corporate access and data visibility policies.

By integrating directly into your Python process, Holonomy decrypts, filters, and masks data locally in memory without requiring complex proxy servers or remote compute clusters.

Supported Stack:

  • Storage: Local file systems and S3-compatible object storage (AWS S3, Cloudflare R2).
  • Format: Exclusively supports Apache Parquet (leveraging Parquet Modular Encryption).
  • Compute: Zero-copy integration with Polars, DuckDB, Pandas, and PyArrow.

Features

  • Local Processing, Enterprise Compliance: Safely pull encrypted datasets to your local machine. Holonomy evaluates centralized JSON Policy Manifests to dynamically enforce Row-Level Security (RLS) and Data Masking at read-time before the data ever reaches your DataFrame.
  • In-Process Execution (No Proxies): Forget deploying dedicated proxy servers, sidecars, or heavy compute clusters just for governance. Holonomy leverages your existing enterprise infrastructure (KMS, IdP, S3) and runs the actual decryption and policy filtering completely inside your application's Python process. Just run pip install holonomy.
  • Zero-Copy Performance: Built on a highly concurrent Rust core and the Apache Arrow C Data Interface, Holonomy operates with true zero-copy semantics. The computational overhead for cryptographic validation and policy linting is practically invisible.
  • Zero-Knowledge Cryptography: Data is protected at rest. In memory, your data is handled with extreme paranoia: cryptographic keys (DEKs) are forcefully wiped the moment they are no longer needed using the ZeroizeOnDrop pattern.

Installation

Install via pip or uv:

pip install holonomy
# or
uv add holonomy

Quick Start

Holonomy includes a zero-config local development mode. You can copy-paste this block and run it immediately without setting up any cloud infrastructure!

import holonomy
import pyarrow as pa
import polars as pl

# 1. Initialize local dev mode (Mock KMS and Mock Identity)
holonomy.init(kms_provider="mock", policy_bucket="local", identity_provider="mock")

# 2. Create sensitive dummy data
batch = pa.RecordBatch.from_arrays(
    [pa.array([1, 2]), pa.array(["alice@test.com", "bob@test.com"])], 
    names=["id", "email"]
)

# 3. Securely write data (Locally encrypts with Parquet Modular Encryption)
contract = '{"name": "Users", "version": "1.0", "columns": [{"name": "id", "type": "int64", "required": true}, {"name": "email", "type": "string", "required": true}]}'
holonomy.write(
    batch=batch, 
    target="file:///tmp/users.parquet",
    purpose="data-engineering",
    contract_json=contract
)

# 4. Securely read data (Decrypts locally and dynamically enforces Data Masking)
arrow_data = holonomy.read(
    target="file:///tmp/users.parquet", 
    columns_to_read=["email"],
    purpose="data-science-analytics"
)

# 5. Zero-Copy transition directly into Polars!
df = pl.from_arrow(arrow_data)
print(df)

Documentation

Comprehensive documentation is available in the docs/ directory:

Authoring Guides

License

Holonomy is licensed under the Business Source License (BSL). See the LICENSE file for more information.

Release files for holonomy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for holonomy 0.1.0
File Size Uploaded
holonomy-0.1.0.tar.gz 156.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for holonomy 0.1.0
File Interpreter ABI Platform
holonomy-0.1.0-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details

Total release size: 14.4 MB

Release files / holonomy-0.1.0.tar.gz

Download URL holonomy-0.1.0.tar.gz
Size 156.9 kB
Tags Source
SHA-256 checksum
How to use checksums
93ff7abab272639e2982b15a6a5f28bf978b4d3041225ab6c0c212171eb4804a
BLAKE2b-256 checksum
How to use checksums
c0a732d8c8037c68498034d53e3d5245cb1196184da505f3b264f7351d075b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / holonomy-0.1.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL holonomy-0.1.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 14.2 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
73f51d14d4dad08835644fe505b5937b3966f8b27292d6dd549d3adb4ca1abb7
BLAKE2b-256 checksum
How to use checksums
ec450c517344c2092e5fbcb3d93530e5e265d120ae5f866321761065dea0c673
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page