scrybe-py
PyO3 bindings that expose scrybe-core and scrybe-render to Python as the
scrybe._rust native extension module. Python on the outside, Rust on the
inside — this crate is the seam between the two.
What it does
Wraps the Rust Document, ContentDigest, and render_html in Python-callable
classes and functions. Python code (the scrybe package, plugins, and the
gila scrybe CLI integration) calls these via the compiled extension module
without any Rust toolchain at runtime.
Role in the architecture
scrybe-py is a thin translation layer. It re-exports scrybe-core and
scrybe-render types directly and adds only the PyO3 #[pyclass] wrappers
needed for the Python boundary. The module is built with maturin and
installed as scrybe/_rust.so (Linux/macOS) or scrybe/_rust.pyd (Windows).
Key public types and entry points
| Python name | Rust source | Description |
|---|---|---|
scrybe._rust.Document |
scrybe_core::Document |
Load, inspect, and render Markdown; content_digest() (deprecated content_id() retained), render_html(theme?), ast_title() |
scrybe._rust.ContentDigest |
scrybe_core::ContentDigest |
ContentDigest.of(bytes), verify(bytes), as_hex(); bare BLAKE3 hex digest, not a CID. ContentId remains as a deprecated alias |
scrybe._rust.render_markdown(source, theme?) |
scrybe_render::render_html |
One-shot render without opening a Document object |
The python feature gate controls whether PyO3 bindings are compiled in. The
crate can also be used as a plain Rust library (re-exporting core types) without
the feature.
Build and test
# Build the Python extension (editable install into active venv)
maturin develop --features python,extension-module
# Run Rust unit tests (no Python required)
cargo test -p scrybe-py
# Smoke test from Python
python -c "from scrybe._rust import Document; d = Document('# Hi'); print(d.content_digest())"
Requires maturin (pip install maturin) and a Rust toolchain. The workspace
Cargo.toml pins pyo3 = "0.28" with auto-initialize.
Metadata
Release files for scrybe-py 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scrybe_py-0.7.0.tar.gz | 85.5 kB | With provenance | Details for scrybe_py-0.7.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrybe_py-0.7.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for scrybe_py-0.7.0-cp39-abi3-win_amd64.whl |
| scrybe_py-0.7.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for scrybe_py-0.7.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| scrybe_py-0.7.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for scrybe_py-0.7.0-cp39-abi3-macosx_11_0_arm64.whl |
Total release size: 5.4 MB
Release files / scrybe_py-0.7.0.tar.gz
| Download URL | scrybe_py-0.7.0.tar.gz |
|---|---|
| Size | 85.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69902a9b5dbd2d82e3cac060b341408a5b4ea85f8ec5fab215b41188913a519b
|
|
BLAKE2b-256 checksum How to use checksums |
a80ceb337a1411e4e3017a527e2eb9225ddf82fdbd6cd093e1fb023070a5d23e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / scrybe_py-0.7.0-cp39-abi3-win_amd64.whl
| Download URL | scrybe_py-0.7.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2c86b2f2b74fd0f86bc73171ca24282e899891622fd16c60c19992371c59a5f4
|
|
BLAKE2b-256 checksum How to use checksums |
8db3dba30855313d03b3212e7cee8d19a0a08c71205bd4c96572af712c790f19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / scrybe_py-0.7.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | scrybe_py-0.7.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
21a44793c018b17b1ff39b7d98d68db743649fa9fe73075f0b32700f5bcec79c
|
|
BLAKE2b-256 checksum How to use checksums |
62967d00c8217e62d717c6488d8b4f237a3cc6237294ebfec0a0a7794ec597e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / scrybe_py-0.7.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | scrybe_py-0.7.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8b77cb85e1dac22ec05e0de849939b2bae33b8c3bd5514e6f9c54d1bc55261a8
|
|
BLAKE2b-256 checksum How to use checksums |
de0acf4de59b93781a56eed47beb4de0637988c4cba5f3c6810e156027ff1eee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for scrybe-py 0.7.0
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.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for scrybe_py-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA 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.