Skip to main content

pyrudof

pyrudof provides Python bindings for rudof, a Rust toolkit for the Semantic Web. It is a thin binding: every piece of Semantic Web logic lives in the rudof_lib and rudof_generate crates, and this package's job is to move values across the language boundary, turn Rust errors into Python exceptions, and present the result as an API that feels like Python.

  • User documentation - start here to use the library: API reference, guides and runnable examples.
  • Internals - package layout and how the examples manifest drives both the tests and the documentation.

Installation

Wheels are published on PyPI and the package requires Python 3.10 or newer:

pip install pyrudof

The wheels are abi3-py310, so a single wheel per platform serves every supported Python version. The package has no Python runtime dependencies.

Development

All commands below are run from bindings/python/. They are the same ones CI runs, in .github/workflows/python.yml.

Setting up

python -m venv .venv
source .venv/bin/activate          # Windows: .venv\Scripts\Activate.ps1

pip install -e '.[dev]'

pip install -e builds the extension through maturin, so the first run compiles the Rust workspace and takes a while. Afterwards, rebuild just the extension with:

maturin develop                    # debug build, fast to compile
maturin develop --release          # optimised, what you want for benchmarks

Testing

pytest                             # the whole suite
pytest -k shex                     # just the ShEx examples
pytest -x -q                       # stop at the first failure

mypy                               # strict type-check of python/, examples/ and tests/

Regenerating what is generated

# 1. Type stubs, from the Rust annotations
cargo run --bin stub_gen --features stub-gen

# 2. The documentation's examples page, from examples.toml
python docs/generate_examples_doc.py --update
python docs/generate_examples_doc.py --check       # non-zero if stale
python docs/generate_examples_doc.py --dry-run     # preview without writing

# 3. The HTML documentation
python -m sphinx -b html docs docs/_build/html

-W to turn warnings into errors, and -E to force a full rebuild rather than an incremental one:

python -m sphinx -b html -E -W docs docs/_build/html
python -m sphinxlint docs/*.rst

Then open docs/_build/html/index.html.

Building wheels

maturin build --release            # wheel into target/wheels/
maturin sdist                      # source distribution
pip install --force-reinstall target/wheels/pyrudof-*.whl

Metadata

Release files for pyrudof 0.3.36

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

Source distribution (sdist)

Source distribution for pyrudof 0.3.36
File Size Uploaded Provenance Actions
pyrudof-0.3.36.tar.gz 5.0 MB Without provenance Details for pyrudof-0.3.36.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyrudof 0.3.36
File Actions
pyrudof-0.3.36-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for pyrudof-0.3.36-cp310-abi3-win_amd64.whl
pyrudof-0.3.36-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details for pyrudof-0.3.36-cp310-abi3-manylinux_2_34_x86_64.whl
pyrudof-0.3.36-cp310-abi3-manylinux_2_34_aarch64.whl CPython 3.10 abi3 Linux glibc 2.34+ ARM64 Details for pyrudof-0.3.36-cp310-abi3-manylinux_2_34_aarch64.whl
pyrudof-0.3.36-cp310-abi3-macosx_13_0_x86_64.whl CPython 3.10 abi3 macOS 13.0+ x86-64 Details for pyrudof-0.3.36-cp310-abi3-macosx_13_0_x86_64.whl
pyrudof-0.3.36-cp310-abi3-macosx_13_0_arm64.whl CPython 3.10 abi3 macOS 13.0+ ARM64 Details for pyrudof-0.3.36-cp310-abi3-macosx_13_0_arm64.whl

Total release size: 110.4 MB

Release files / pyrudof-0.3.36.tar.gz

Download URL pyrudof-0.3.36.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
67c31a71994d9b01307656c31a0c8f43361a90bf16d9cf9ea693d81f9f4f1a7f
BLAKE2b-256 checksum
How to use checksums
4ea4d45e98e563fdbfee3903112b7d81672cba6a8258b778ad47948aba4d389a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / pyrudof-0.3.36-cp310-abi3-win_amd64.whl

Download URL pyrudof-0.3.36-cp310-abi3-win_amd64.whl
Size 19.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f87199016a4eb5b25b709af3fc3c04901e4260562437cba1e9b35cc545281cfb
BLAKE2b-256 checksum
How to use checksums
24e4f90cdac71216b44d860adf7f6892f84053131405071626ff78e21658578d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / pyrudof-0.3.36-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL pyrudof-0.3.36-cp310-abi3-manylinux_2_34_x86_64.whl
Size 25.3 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
6862f176e4581b0c8006a89f4acc2e1bd0045be197ba2eaedd9afec226e2f0d3
BLAKE2b-256 checksum
How to use checksums
9478b436df77cc87652bcc8a86440aad868436d043216ed4f3c3dee8e66ec023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / pyrudof-0.3.36-cp310-abi3-manylinux_2_34_aarch64.whl

Download URL pyrudof-0.3.36-cp310-abi3-manylinux_2_34_aarch64.whl
Size 25.0 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
a7b8c8312aac68775bc3df625039f8c85c51dacddecb348bef3892d66290b99d
BLAKE2b-256 checksum
How to use checksums
6648dc3ea1b7496f7f31c1889ed3776d0c8ebd2e7e65a3f73b0a2132f24eaab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / pyrudof-0.3.36-cp310-abi3-macosx_13_0_x86_64.whl

Download URL pyrudof-0.3.36-cp310-abi3-macosx_13_0_x86_64.whl
Size 18.1 MB
Tags CPython 3.10 abi3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
1559ffb4d24612e7716136a145d04e87d36aa9422e9c596bb19fd5f6f5c7bb1c
BLAKE2b-256 checksum
How to use checksums
8327b69ac79feb8e1940c6dae907f980bb2b9ab72f48909ade086b07c39cfaa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / pyrudof-0.3.36-cp310-abi3-macosx_13_0_arm64.whl

Download URL pyrudof-0.3.36-cp310-abi3-macosx_13_0_arm64.whl
Size 17.5 MB
Tags CPython 3.10 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
4b015afe80fe3b264c3f3af3fb6a32ac040406ba651832f8ad4be4cb4770dece
BLAKE2b-256 checksum
How to use checksums
8939321208b654d61244234dc9948a93dbcd5d1078431262bd31703b31983c64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for pyrudof 0.3.36

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.3.36 This release

6 release files No provenance

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