Skip to main content

pyprttl

Python bindings for the Rust prttl Turtle formatter.

Installation

Python 3.11 or newer is required.

Install the published package from PyPI:

pip install pyprttl

If a wheel is not available for your platform, pip will build from source. Source builds require:

  • Python 3.11+
  • a Rust toolchain with cargo
  • git, because Cargo fetches the pinned prttl dependency from its upstream git repository

To install from a local checkout:

pip install .

To install in editable mode for development:

uv sync --group dev
uv pip install -e '.[test]'

This creates .venv/ and installs the build and test dependencies used by this project.

Building

Build an editable local extension module into the active virtual environment:

uv sync --group dev
.venv/bin/python -m maturin develop

Build a wheel:

uv sync --group dev
.venv/bin/python -m maturin build --release --locked --compatibility pypi

The wheel will be written to target/wheels/.

Build a source distribution:

uv sync --group dev
.venv/bin/python -m maturin sdist --out dist

Testing

Run the test suite with:

.venv/bin/python -m pytest -q

Usage

import pyprttl

formatted = pyprttl.format_turtle("@prefix ex: <http://example.com/> . ex:s ex:p ex:o .")

The package is built with maturin.

Metadata

Release files for pyprttl 1.0.1

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

Source distribution (sdist)

Source distribution for pyprttl 1.0.1
File Size Uploaded
pyprttl-1.0.1.tar.gz 17.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyprttl 1.0.1
File
pyprttl-1.0.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
pyprttl-1.0.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details
pyprttl-1.0.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details
pyprttl-1.0.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details

Total release size: 3.6 MB

Release files / pyprttl-1.0.1.tar.gz

Download URL pyprttl-1.0.1.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4c9a506259be22f5eac2c498ce42157281a49a376dae97da2fa6b98cae9ca3bb
BLAKE2b-256 checksum
How to use checksums
a68ab8761a868d8322712fcc29bc0d633bd99d5972ea1c8848f479ce33e1f92d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Release files / pyprttl-1.0.1-cp311-abi3-win_amd64.whl

Download URL pyprttl-1.0.1-cp311-abi3-win_amd64.whl
Size 768.6 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
39876010ef0f6a24664b0cb8824acdeff9effcee4d1bbe51e04b35f17347f874
BLAKE2b-256 checksum
How to use checksums
5f80225162e2a22083b1db875cd3414b9ee6ce1ef0b4f20f2266c4f9af12346e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Release files / pyprttl-1.0.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyprttl-1.0.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 995.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
bd401373a5e8700247572bb87f1dc99c2db838e29a424c10bbf498c41cd9f310
BLAKE2b-256 checksum
How to use checksums
496ae3dd5d2eb3c6239db79b6240fb21c32864935878587c1b008d83ebd306c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Release files / pyprttl-1.0.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pyprttl-1.0.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 952.4 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
47168a5c164c6ecb78bf9635f2dc9df921bc96c46e323fa87ed09e092aef2a70
BLAKE2b-256 checksum
How to use checksums
228e21eb418275bc72c166f5a8f298dee1e55bd192f707455fc918b9ec3cba7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Release files / pyprttl-1.0.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyprttl-1.0.1-cp311-abi3-macosx_11_0_arm64.whl
Size 869.2 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3b293dbb54fa3fea561d72478217a325fffd4e79180d808ab795be13f43a4553
BLAKE2b-256 checksum
How to use checksums
6dfcbf8b93aeed43efbfa54364c60db5343c1a909890336fdf903eeaa6816dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

5 release files

1.0.0

5 release files

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