Metadata-Version: 2.4
Name: pyprttl
Version: 1.0.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing
Requires-Dist: pytest>=8 ; extra == 'test'
Provides-Extra: test
License-File: LICENSE
Summary: Python bindings for the prttl Turtle formatter
Keywords: rdf,turtle,formatter,pretty-printer,rust
Home-Page: https://github.com/rism-digital/pyprttl
Author-email: Andrew Hankinson <andrew.hankinson@gmail.com>
License-Expression: Apache-2.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/rism-digital/pyprttl
Project-URL: Issues, https://github.com/rism-digital/pyprttl/issues
Project-URL: Repository, https://github.com/rism-digital/pyprttl
Project-URL: Upstream, https://codeberg.org/elevont/prttl

# pyprttl

Python bindings for the Rust [`prttl`](https://codeberg.org/elevont/prttl) Turtle formatter.

## Installation

```sh
pip install pyprttl
```

Python 3.11 or newer is required. If a wheel is not available for your
platform, pip will build from the source distribution. Source builds require a
Rust toolchain, Cargo, and git access so Cargo can fetch the pinned `prttl`
dependency.

## Usage

```python
import pyprttl

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

The package is built with maturin.

