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

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

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

File metadata

  • Download URL: issundb-0.1.0a1-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.0a1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 149a0eee0096fe05108d018940e9d26fa669203cfda5ff3ee1d4f83b34e52e4e
MD5 258c0ed151d9c0d41588dfc3b897260b
BLAKE2b-256 7a6a7031f4108d3e9091e197cc440a9a7b6e83c6163da48fbb2511a7efafbf9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db474aced10eaf89b486928e98348142f356bdd4d89e8d6c77aee430a637ad07
MD5 f5e4c98224bac19a8e935f12bc95fff4
BLAKE2b-256 e88667ca86b9ba57bcf2b3a7447db24cbf0de7c0f15cbdf5edb9f8a412679264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 520853982ab5f172aae2d388770082c5d8107aec10b69a92f327fe998f56d398
MD5 d1048809985e8fecc6dceb3dda556881
BLAKE2b-256 e16c0a8c7d726e99e6dbcadc9938664125cae1c0f371881f27bd3ea60e6cbe19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85697e2b4a9bfc88b94bbe0df606e3020af0e22ad822ae984c7ff23df8b3de18
MD5 a83ec2662d2cd141193c0240d5876f6b
BLAKE2b-256 636a902d4a535182a68d403f17c4b75ba37faba2bd7ad736955b154dc01a3d45

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