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

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

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

File metadata

  • Download URL: issundb-0.1.0a3-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.0a3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 71889d1f5ff30c0f5a0b7eddf879354b363981c45fdfb77beebd57219908949b
MD5 5c5ce1ab89d0abf9438a265050bc2df5
BLAKE2b-256 68f629b6f0ee800aeb5f7e1b878f8bb253e5305b149ef06948c96484c64bc27b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a3-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b8268c4054efde804246db0fc8411d77ea2704ab11dee85d3e837c1500290949
MD5 ec09bc2f5f1cf6ae952651fb4fce0524
BLAKE2b-256 8237a64faf5b165e49775aca2357f126cb03e8a7e95b899fdd3e02700a338cfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a3-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 70912b9060fcdbb142c991b401006030c215e518112e182968f017269a1bca8b
MD5 37f3eb5a54d813efb2d2f803f0193a1d
BLAKE2b-256 ace7712b6aa5ed50179d2c36deee10cac4d2ed2d5f78c20054bb312e745770ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for issundb-0.1.0a3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1009ad24e22725e2e78b323c3b6a8cba672fb648428e422f0ef74c7e4c1c35ad
MD5 fb6c123bf2f1bf21d808196b3b20aad3
BLAKE2b-256 88566a5e33447d93596f7bae888404cffc40617e0b94bbc558f2a41b700c183b

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