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

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.42
File Size Uploaded Provenance Actions
pyrudof-0.3.42.tar.gz 5.2 MB Without provenance Details for pyrudof-0.3.42.tar.gz

Built distributions (wheels)

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

Total release size: 113.4 MB

Release files / pyrudof-0.3.42.tar.gz

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

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

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

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

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

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

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

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

Download URL pyrudof-0.3.42-cp310-abi3-macosx_13_0_x86_64.whl
Size 18.6 MB
Tags CPython 3.10 abi3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
08860c2e556f9cec415a682a68aac7a27a7fc96e76522dcbd3e24a28318fe0f3
BLAKE2b-256 checksum
How to use checksums
b5ae61beee4164e760a7529f23b68dcb1c17ea151a05b9914d41a621e257d8c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

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

Download URL pyrudof-0.3.42-cp310-abi3-macosx_13_0_arm64.whl
Size 18.0 MB
Tags CPython 3.10 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
22bd158d0fe62a9816de15810dc990b9b4fa8060fae841b68a42e70105467371
BLAKE2b-256 checksum
How to use checksums
f01cbb84ef34261475db35762bb1fc769166ea49400edd0afbc5d43d0b14d4a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for pyrudof 0.3.42

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