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

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a9-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.0a9-cp310-abi3-manylinux_2_28_aarch64.whl (9.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a9-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.0a9-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: issundb-0.1.0a9-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.0a9-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dbb68a3f26e71b67ce390e07cf6c6830ae4f2d1106b318dea4abd241e0aa101d
MD5 47d832317724ccb729f9fbcd4091671b
BLAKE2b-256 c73f8bc3882ff6ee75dd9c8dba9b36cc4048078326b4a40e257445b8ac4986b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a9-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d3c2d97caa52358c2a39bcca42a695a7471211d4e7d2eb0868674888e502da4
MD5 0361a1402a4020d5dc9753cd05e65f94
BLAKE2b-256 0198643b9c320d149ccd3218d7f963ed143180476ebf81ff26ce61e5eb7cdfff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a9-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6c8920d1947f92653b294aa3e7c90499e6d3c4cc1525bf559811ababfd61a0ca
MD5 ba9390a87527627ac23c25687fee542f
BLAKE2b-256 7b4849c48cfa2db564ede589e27060da9272497209ee56bd2184bd523c2db236

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a9-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c51b8d721092ed313f8305fd8d0d0cc447db913e1c258ee6786af35e6135e2c0
MD5 c64be1db4b6865d650e32ad8ddaed208
BLAKE2b-256 9df46d0f5629f75bdba9b546a872490352bbace1fbaafd6ac32dea48bb3194cb

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