Metadata-Version: 2.4
Name: triplelite
Version: 1.3.1
Summary: Lightweight RDF graph with configurable indices
Author-Email: Arcangelo Massari <arcangelo.massari@unibo.it>
License-Expression: ISC
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Provides-Extra: rdflib
Requires-Dist: rdflib>=6.0.0; extra == "rdflib"
Description-Content-Type: text/markdown

# TripleLite

Lightweight in-memory RDF triple store for Python, optimized for speed and memory efficiency with a C core.

[![PyPI](https://img.shields.io/pypi/v/triplelite)](https://pypi.org/project/triplelite/)
[![Python](https://img.shields.io/pypi/pyversions/triplelite)](https://pypi.org/project/triplelite/)
[![C extension](https://img.shields.io/badge/core-C-blue)](https://github.com/opencitations/triplelite)
[![Tests](https://img.shields.io/github/actions/workflow/status/opencitations/triplelite/test.yml?label=tests)](https://github.com/opencitations/triplelite/actions/workflows/test.yml)
[![Coverage](https://opencitations.github.io/triplelite/coverage-badge.svg)](https://opencitations.github.io/triplelite/coverage/)
[![REUSE](https://api.reuse.software/badge/github.com/opencitations/triplelite)](https://api.reuse.software/info/github.com/opencitations/triplelite)
[![License: ISC](https://img.shields.io/badge/license-ISC-blue.svg)](LICENSE)

## Install

```sh
pip install triplelite
```

For [rdflib](https://rdflib.readthedocs.io/) interop:

```sh
pip install triplelite[rdflib]
```

## Quick start

```python
from triplelite import TripleLite, RDFTerm

g = TripleLite()
g.add(("http://example.org/s", "http://example.org/p", RDFTerm("uri", "http://example.org/o")))

for s, p, o in g.triples(("http://example.org/s", None, None)):
    print(s, p, o.value)
```

See the full documentation at [opencitations.github.io/triplelite](https://opencitations.github.io/triplelite).

## License

[ISC](LICENSES/ISC.txt)
