Skip to main content

Python bindings for IssunDB

Project description

IssunDB for Python

Python version PyPI version Documentation Examples License: MIT

This directory contains the Python bindings for IssunDB.

Installation

pip install issundb

Quickstart

import json

from issundb import IssunDB

# Open or create a database
db = IssunDB("./issundb-data")

# Add two nodes (with properties)
alice = db.add_node("Person", json.dumps({"name": "Alice", "age": 30}))
bob = db.add_node("Person", json.dumps({"name": "Bob", "age": 28}))

# Add a directed edge between the nodes
db.add_edge(alice, bob, "KNOWS", json.dumps({"since": 2021}))

# Run a Cypher query and and print the results
result = json.loads(
    db.query("MATCH (a:Person)-[r:KNOWS]->(b:Person) RETURN a.name, b.name, r.since")
)

print(result["columns"])
for record in result["records"]:
    print(record["values"])
# Output:
['a.name', 'b.name', 'r.since']
['Alice', 'Bob', 2021]

Documentation

Visit IssunDB's documentation for detailed information including examples and API references.

License

The content of this directory are avaible under the MIT License.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

issundb-0.1.0a5-cp310-abi3-win_amd64.whl (8.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a5-cp310-abi3-manylinux_2_28_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

issundb-0.1.0a5-cp310-abi3-manylinux_2_28_aarch64.whl (8.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a5-cp310-abi3-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file issundb-0.1.0a5-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: issundb-0.1.0a5-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.2 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for issundb-0.1.0a5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 abe61c032a7b15f406505cbd0db5bdb01d391678b757e85ccd94418bc0a83225
MD5 e3fa1572e9e30734216a87f7fcc3a718
BLAKE2b-256 34b00a604149968d669780cb80ea83d8e9054ce10b67bb6f41b0b04bcf18cc37

See more details on using hashes here.

File details

Details for the file issundb-0.1.0a5-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for issundb-0.1.0a5-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 563f22405e00b6a588eb0b9d2a15fa6f9080fdbca5e33d909b26a43303449974
MD5 546162869a30bf5a5de772ee1b8b67dd
BLAKE2b-256 dbe3f27962a616d449dc1c3549487ea1934b8e92a2f45f94a7080b5261d821dc

See more details on using hashes here.

File details

Details for the file issundb-0.1.0a5-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for issundb-0.1.0a5-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 81323636bb28728e25efdbf3c4249080aa7f70713afffc050a476d0b92d97a6c
MD5 9cd9657bcbeda204740ca113918663e9
BLAKE2b-256 7d61a388ae043f9591413e7fbde040a3d9712dd61712200888042259c32d3ead

See more details on using hashes here.

File details

Details for the file issundb-0.1.0a5-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for issundb-0.1.0a5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e93e8a99d2dbb6f6217689d81ffa49d95a6fab490c86ae97f79fe6402cafcccb
MD5 7c6d2c1a2f7f100f03da26039dbe0da0
BLAKE2b-256 665c2da51a93cfd663b0e7fb3600ab47a03566edb434ed68afe3adf9096a1610

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