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

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.39
File Size Uploaded Provenance Actions
pyrudof-0.3.39.tar.gz 5.1 MB Without provenance Details for pyrudof-0.3.39.tar.gz

Built distributions (wheels)

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

Total release size: 111.6 MB

Release files / pyrudof-0.3.39.tar.gz

Download URL pyrudof-0.3.39.tar.gz
Size 5.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d58282087fd05242a0268a77aa80b162506f3e961072dee9ce57e07491dd9523
BLAKE2b-256 checksum
How to use checksums
5a3e5e0c1922d94572ed68d8fd23f268a8757de6c80ed435f30f09e060723c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

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

Download URL pyrudof-0.3.39-cp310-abi3-manylinux_2_34_x86_64.whl
Size 25.6 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
63c920489adcf0b11931e5d77f3e46862cf9dca5cc1a04f7044143c54895af55
BLAKE2b-256 checksum
How to use checksums
07a6613a3d4a088f23c78375c62e8b29db5f5dfbac3a3202dd7f9dcc33098a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

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

Download URL pyrudof-0.3.39-cp310-abi3-macosx_13_0_x86_64.whl
Size 18.4 MB
Tags CPython 3.10 abi3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
0fa610e6144c044581ae59b0cdeeaa7eb6e8cc39b90634c695a1871df637f5f3
BLAKE2b-256 checksum
How to use checksums
14ad8a3d5a237a1872c9a0c1640ecba3626a63e3ca84c2e97d57f36ab57518ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

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

Security for pyrudof 0.3.39

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