Python bindings for GQLite, a Graph Query library
Project description
GQLite is a C++-language library, with a C interface, that implements a small, fast, self-contained, high-reliability, full-featured, Graph Query database engine. The data is stored in a SQLite database, which the fasted and most used SQL database. 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 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, and the intent is to also support ISO GQL in the future when it become available.
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 openCypher query language can found in openCypher 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
File details
Details for the file gqlitedb-1.1.0.tar.gz
.
File metadata
- Download URL: gqlitedb-1.1.0.tar.gz
- Upload date:
- Size: 51.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8467f4c66b23a60684d68a6a7654be94d37b5e56ebb14e7810d9ecc55a0ddfb |
|
MD5 | aedc61d492837dd93ab424f07cf6f59e |
|
BLAKE2b-256 | bef750ae0108175018bfc5f3d7d90b22c977eac590b3fa9fb7bce9fc5a1aaa74 |