Skip to main content

Python bindings for IssunDB

Project description

IssunDB for Python

Python version PyPI version Documentation Examples License: MIT

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.0a14-cp310-abi3-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a14-cp310-abi3-manylinux_2_28_x86_64.whl (10.3 MB view details)

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

issundb-0.1.0a14-cp310-abi3-manylinux_2_28_aarch64.whl (9.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a14-cp310-abi3-macosx_11_0_arm64.whl (7.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: issundb-0.1.0a14-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.6 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.0a14-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dfa14e2ccf1cf4bed3a7c23bf5b4a5fec10c4ef14c9bccabb959df70b83da669
MD5 3d906b4623705bc93013d396e35b4f6d
BLAKE2b-256 aa84f81cbc580b73549ce754a350f59caa597f1086623cb0931a1488b65e8c0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a14-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a5cd5661aaa5ef5425641a0123cbd4ba10044a5f7b029b45bb4338682e366780
MD5 1298015d5c6eea1f26e7fe23437ec126
BLAKE2b-256 4f9ed71f2b8ef8d87fc3a34152d99979b7086d7552cda865b027836c170da427

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a14-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8789ac7baaa5eee7c091324eb6b5fe098cbb139b85124b0f4c48731f2e42fda3
MD5 778cba00fcf386f5ec5203dbc406ea13
BLAKE2b-256 a195275769c4daef0f6841ab90b9bbff88cdff9a731308511df8ba3439c9a38c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a14-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3e0a6560a2dd08831aba3776f5ffab710fee8c68d8e1d7bbcaf4a696f7d1b95
MD5 63a341c578ddd1aaef5dc580aca0e059
BLAKE2b-256 a02144e6cbd0a23223677fae209457ee1ad1943062c722b91952784a63a80f7a

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