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.9.0a1.tar.gz (215.8 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.9.0a1-cp310-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file tessera_rs-0.9.0a1.tar.gz.

File metadata

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

File hashes

Hashes for tessera_rs-0.9.0a1.tar.gz
Algorithm Hash digest
SHA256 04ad707776685f9587e167c1b228041b1072126ff43ccb75e787208d94ce5e53
MD5 ebe12b28a9d4d51f7d57774f293ca3b1
BLAKE2b-256 f18b9d5a5e4e557c1cf04bdefeaef1c50f282bddb3ef3818b7fad3c22737bc81

See more details on using hashes here.

File details

Details for the file tessera_rs-0.9.0a1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tessera_rs-0.9.0a1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e711668aa25db0fd1bd9ccada34ab3a43b1f1bd97c7e97390898d0bb25850eb
MD5 550ed66c68553ab4dc825c45629008b8
BLAKE2b-256 809544fcb13f9e36f6d34289ce0253992352197c077aba84ffbf0d35466ff042

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