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

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a15-cp310-abi3-manylinux_2_28_x86_64.whl (10.4 MB view details)

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

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

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a15-cp310-abi3-macosx_11_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: issundb-0.1.0a15-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.0a15-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3781c8419dcf37ba7e987de1b1158b5787eb41bd2ec73c34fa6d09fbae5817a6
MD5 57d59832f7bd7db8a7b1568960b75535
BLAKE2b-256 f16efc0057a8611bc10d1f58e2f0aa082be22606e281201ee7328a8dc27c96d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a15-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6461e9a0b5119b0d64d311f8f7ff8c455bf140c23a5c1ff3bc6fdd419a79802b
MD5 9d954fd085c26cc486a97ccfd378c4d4
BLAKE2b-256 1161bb44616bb6ce27371b6062e5933f17d669b804b4e0d6d20e9f84de0484d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a15-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 65ca386a420cb1bb4f892b0fbf9780b0bea1f4f4a5e7fef4c896f42c7ed990e2
MD5 f7f4ff130680b1708415501e8997e346
BLAKE2b-256 472ae5d2b421ec68cec7799103d38695058f5115e71b7fe13bd686a8c31bda4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a15-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8258586654f54087c280c06085d03ca72bd17abbf31988c7418800992b464c96
MD5 00f1bab5850b2589c4da3890883c77ab
BLAKE2b-256 9dea3ba422d8e3dcc5344714f94100d8486baa95f6eb57c37b7edb557eb4cc00

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