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

Uploaded CPython 3.10+Windows x86-64

issundb-0.1.0a4-cp310-abi3-manylinux_2_28_x86_64.whl (10.0 MB view details)

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

issundb-0.1.0a4-cp310-abi3-manylinux_2_28_aarch64.whl (8.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

issundb-0.1.0a4-cp310-abi3-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: issundb-0.1.0a4-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.0a4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f9fb9efe024a00eac92a607d4f895f7b5ee5d2d03fe76883f00bfaf2dcf01cd2
MD5 803557566bb4c193ec26d81f73b8f590
BLAKE2b-256 f9aaa208a53c063d9bce35cf998d221e5f3cce9cebba53bccb8e4e47e2dc347f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a4-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0386dfdd8ba3bc6978fa5dd2d60ce552d25b2e3d104cec4bed405f2267a06d37
MD5 701ae2a1ca23ffa804aeadfc85a3cc32
BLAKE2b-256 deb731592db6b8072739365aab92c0d5cf9a63e13b16bd532a385134ae7db52e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a4-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 671717f006f60eb2ed19092c6e9f9c5c375016f9a68fcd3596b06e5a3632c17d
MD5 3c7968d565e9b2f4991b35925f6fd873
BLAKE2b-256 82c221e21975de9736965b900341dcb2992e0c4f190a90a9fb35ed339bdd8b9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7816a047eda5925b4339fc25785abd00d2e0b0ff7a8a82e57556088927f6fc9
MD5 2f52d22627929e7be46b4e42a4afae14
BLAKE2b-256 ca02477824c8513e532f45c3564ba0d7d084ae7f3302a56a54ab5cbf8ba75df2

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