Skip to main content

Lightweight RDF graph with configurable indices

Project description

TripleLite

Lightweight in-memory RDF triple store for Python with configurable indexing.

PyPI Python Tests Coverage REUSE License: ISC

Install

pip install triplelite

For rdflib interop:

pip install triplelite[rdflib]

Quick start

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.

License

ISC

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

triplelite-1.1.0.tar.gz (110.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

triplelite-1.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file triplelite-1.1.0.tar.gz.

File metadata

  • Download URL: triplelite-1.1.0.tar.gz
  • Upload date:
  • Size: 110.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for triplelite-1.1.0.tar.gz
Algorithm Hash digest
SHA256 66e8de4f296d16d45b6e7a292dfc8ae41ed4f15d15aa0d1e8ae675c3a2407aa0
MD5 a88f792b20016ab173d665bd50ee66af
BLAKE2b-256 af5b39136e74f0f3e231317e65b16842a6c8c4f0cbe3029e7874c0ec42c87bfd

See more details on using hashes here.

File details

Details for the file triplelite-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: triplelite-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for triplelite-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b43bf3f523f0d07f4e87cc9dba080732f05f17bf4d025cd83653777c53ab08e
MD5 66f140b1b202afc814cfe63d8efd9203
BLAKE2b-256 20fd0e523499b6de22c7e99c1bb8886c6cff3501f250e1105ed8c7821e61442a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page