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.0.tar.gz (97.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: gqlitedb-1.2.0.tar.gz
  • Upload date:
  • Size: 97.0 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.0.tar.gz
Algorithm Hash digest
SHA256 368786f8e46bd5509aac423cb4ba445aefe3806b2f0ce31ab7d33de1fa2e3155
MD5 a1875aa5b0a29135546aea74cb6de6d8
BLAKE2b-256 6d56b5e051cb9caacbd9c91cb3d01e80ced5624e4d802faa01c80b461111b7a6

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