Skip to main content

Python bindings for GQLite, a Graph Query library

Project description

GQLite is a Rust-language library, with a C interface, that implements a small, fast, self-contained, high-reliability, full-featured, Graph Query database engine. GQLite support multiple database backends, such as SQLite and redb. This enable to achieve high performance and for application to combine Graph queries with traditional SQL queries.

GQLite source code is license under the MIT License and is free to everyone to use for any purpose.

The official repositories contains bindings/APIs for Rust, C, C++, Python, Ruby and Crystal.

The library is still in its early stage, but it is now fully functional. Development effort has now slowed down and new features are added on a by-need basis. It supports a subset of OpenCypher, with some ISO GQL extensions.

Example of use

import gqlite

try:
  # Create a database on the file "test.db"
  connection = gqlite.connect("test.db")

  # Execute a simple query to create a node and return all the nodes
  value = connection.execute_oc_query("CREATE () MATCH (n) RETURN n")

  # Print the result
  print(f"Results are {value}")
except gqlite.Error as ex:
  # Report any error
  print(f"An error has occured: #{ex.msg}")

The documentation for the GQL query language can found in GQL and for the API.

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

gqlitedb-1.2.2.tar.gz (100.2 kB view details)

Uploaded Source

File details

Details for the file gqlitedb-1.2.2.tar.gz.

File metadata

  • Download URL: gqlitedb-1.2.2.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for gqlitedb-1.2.2.tar.gz
Algorithm Hash digest
SHA256 199af3c6b0f8d8b8c16534c9833970ff05cba4853973674eeb19cd02b0aa0bc2
MD5 1ec033011ab34bc3a1a0fff135d509d4
BLAKE2b-256 df98f8a73cc81d8d0b632a5874ba12c85cd04f77db2d4a070f9718d9ebee03ef

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