Skip to main content

Pure-Rust implementations of the Tessera security primitives, exposed via PyO3.

Project description

tessera-rs

PyO3 bindings for the Tessera Rust workspace, distributed as tessera-rs on PyPI and imported as tessera_rs in Python.

The underscore in the import name keeps this disjoint from the existing tessera Python package, so the two coexist without collisions.

Status

Phase 3 alpha (0.8.0a3). Ships the smallest useful surface:

from tessera_rs.policy import Policy
from tessera_rs.context import Context
from tessera_rs.scanners import injection_score, scan_unicode_tags
from tessera_rs.audit import canonical_json, JsonlHashchainSink, make_replay_detail
from tessera_rs.ssrf import SsrfGuard
from tessera_rs.url_rules import UrlRulesEngine

Later phases expand the surface to cover sensitivity, ratelimit, evidence, provenance, delegation, and the rest of the moderate-tier primitives ported in Phase 2 + 3.

Build locally

cd /Users/kenith.philip/Tessera/rust/crates/tessera-py
maturin develop  # builds and installs into the current venv
python -c "from tessera_rs.policy import Policy; print(Policy().__class__)"

CI builds wheels via messense/maturin-action for cp310, cp311, cp312 across manylinux2014 / macos-arm64 / macos-x86_64 / win64. TestPyPI publishes happen on every merge to main during alpha; public PyPI publish is gated on Phase 6.

Why a separate crate?

The PyO3 layer is opt-in: building it requires the Python development headers and the maturin toolchain. Keeping it in its own crate means contributors who only touch the Rust data plane do not need a Python toolchain installed.

Project details


Download files

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

Source Distribution

tessera_rs-0.11.0.tar.gz (210.0 kB view details)

Uploaded Source

Built Distribution

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

tessera_rs-0.11.0-cp310-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file tessera_rs-0.11.0.tar.gz.

File metadata

  • Download URL: tessera_rs-0.11.0.tar.gz
  • Upload date:
  • Size: 210.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for tessera_rs-0.11.0.tar.gz
Algorithm Hash digest
SHA256 ff9ad7055d8c91c64c6c7baa80c972e57e28e34d30e9ab9f18b92b231af61a11
MD5 25ba262cdde0b8de26ca6e5359fe64d5
BLAKE2b-256 69d1c632106f7df9a9e7db3d5ceef6056c6d9c736daf105a11341a70501ecb01

See more details on using hashes here.

File details

Details for the file tessera_rs-0.11.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tessera_rs-0.11.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b90a21e19674cf4a3a0a5375687085a68f259fd8796cdce5c23e441eeb7172a2
MD5 ec3c2b0fd459d168bd6080e0fb08585d
BLAKE2b-256 18ba3b4e8d93e2669fc86e2d2f3d05559203f1ed3a3b3d6025e038c42bed520c

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