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 in this directory are licensed 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.0a2-cp310-abi3-win_amd64.whl (8.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a2-cp310-abi3-manylinux_2_28_x86_64.whl (9.9 MB view details)

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

issundb-0.1.0a2-cp310-abi3-manylinux_2_28_aarch64.whl (8.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl (6.7 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: issundb-0.1.0a2-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.0a2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6b7ed08e3203c257e0472f4d2e3fecab3dfc87f7c01235fc726d93e719bfac13
MD5 c2dd5e97ac76b1e30e9037de737b2a83
BLAKE2b-256 f72df4e7c8bc3bd3092e3fd201c3ab413227bfa13936409d60e531ec703a534d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 faef1d9860b3a09db616a74203ba0350dfc0ca38cc91f3c8c7ac4091432beb67
MD5 4d6d62cca65584130b49883910e6b729
BLAKE2b-256 2a99819e6bca2d9d852f568cb63a2b944481cce8ae577a861a66b09db1a89984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 768f9cf4481652e626c642a286a390cb1de3a0cd7ca43f6ea4af34541865c53d
MD5 1574c19588d24eda0c557b0ffca161b5
BLAKE2b-256 051bc7c896310c4f2c5c2a7a908e865d5b38dae9ea5c7d26d327921052823827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 471f3132a27020d82f61825773661443f5c8862c39df76cdefaa362fda3298f3
MD5 cd0ae97796d4226c9fbdbe63cacc3aa0
BLAKE2b-256 f655a90b781aabfd71464002da370ee03ca72a42ecad3a313b081f9972d41864

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