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.8.0.tar.gz (209.7 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.8.0-cp310-abi3-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for tessera_rs-0.8.0.tar.gz
Algorithm Hash digest
SHA256 0e385cf10980a69e417acc9db840aeaab649144f89b0c4f858525444f63e0175
MD5 f0f5e97a2226fdfde59c7bdb621e61f4
BLAKE2b-256 77310d52c2e3ddb014581c2da454c464ad1a170c8e6a48ffb9c1411fcf7dffc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tessera_rs-0.8.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f3209ba12729260a8c5265d191f22599c1fa6d7aa8eb3f96e6a6439c4774ac7
MD5 0574eee635077bde10eb3398cd82c7b4
BLAKE2b-256 8be9180182cd042785eb719d76633d72bdfd7d4d32324735a585d29067c176a5

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