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

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a10-cp310-abi3-manylinux_2_28_x86_64.whl (10.1 MB view details)

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

issundb-0.1.0a10-cp310-abi3-manylinux_2_28_aarch64.whl (9.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a10-cp310-abi3-macosx_11_0_arm64.whl (6.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: issundb-0.1.0a10-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.4 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.0a10-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b58ed9c2bf672fec14454f86be74676a68c8ac565a2cc4567e6fbadc59a807f2
MD5 3887dcf1e8b405d6e696c29d562d19f6
BLAKE2b-256 13d845c7b612f170cf9d3f89432a2d21f697f184c6c1a3ae83471585d8f3bc66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a10-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d192a6048d9366d653480c6fdac8a26635e58c2e1a8bdc10a7baf98fb93333b
MD5 3b1a209969ff7a3bdff57e68be6a47fd
BLAKE2b-256 3f02618080f6ca322b2d69979b8ff6a0642625ed861ab7f1cf8151c6ca91396c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a10-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3ba17acd6bd35724095b51708cc177ccc749a50723fe2af108b077c003f483a8
MD5 b39fe84a867f657cd4015b311f6f6db6
BLAKE2b-256 1efddf2342a47e7b8198a7a160e213e9d59a934773d923e5e03dd3cf5c02aa03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a10-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b79c997bb5179d577235529b55088de6743d05e705e8607bce41004e13b9774
MD5 09d2c88ab74f1ba8583d7b24f6a11e3b
BLAKE2b-256 e94f1b46c123ff8516a8ee3f68c75d85cfd2b73ae66ba3e3b81721cdbc4a9104

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