Metadata-Version: 2.4
Name: rdf-delta
Version: 0.2.5
Summary: Python client and parser library for RDF Delta.
License: MIT
License-File: LICENSE
Author: Edmond Chuc
Author-email: edmond@kurrawong.ai
Requires-Python: >=3.11,<4.0.0
Classifier: License :: OSI Approved :: MIT 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
Requires-Dist: httpx (>=0.26.0)
Requires-Dist: lark (>=1.1.9)
Requires-Dist: loguru (>=0.7.2)
Requires-Dist: pydantic (>=2.5.3)
Requires-Dist: rdflib (>=7.0.0)
Description-Content-Type: text/markdown

# RDF Delta Python

## Installation

Replace `<version>` with the latest GitHub release. You can browse the GitHub releases [here](https://github.com/Kurrawong/rdf-delta-python/releases).

```shell
pip install https://github.com/Kurrawong/rdf-delta-python/archive/refs/tags/<version>.zip
```

## Client

A Python client to interact with a Delta Server.

Example usage:

```python
from rdf_delta import DeltaClient

client = DeltaClient("http://localhost:1066/")
ids = client.list_datasource()
for id_ in ids:
    print(client.describe_log(id_))

```

See the [DeltaClient](rdf_delta/client.py) class for all the possible methods and [test_delta_client.py](tests/delta_client/test_delta_client.py) for more in-depth usage such as adding new patch logs.

## RDF Patch Lark Parser

A Lark parser of the [RDF Patch](https://afs.github.io/rdf-delta/rdf-patch.html) format will be implemented soon.

This will allow for [Lark transformer and visitor](https://lark-parser.readthedocs.io/en/latest/visitors.html) implementations to process and transform the abstract syntax tree as needed.

