Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
flockdb
.gitignore
LICENSE Adding something on how to use this in the readme
README.md
setup.py

README.md

Usage

Create a new client:

import flockdb
client = flockdb.Client("localhost", 7915, {
    "follows": 1,
    "blocks": 2,
    })

Edge manipulation:

client.add(1, "follows", 2)
client.remove(1, "follows", 2)

Perform a query:

client.get(1, "follows", None)
=> (2,)
client.get(None, "follows", 2)
=> (1,)
client.get_all([(1, "follows", 2), (2, "follows", 3)])
=> [(2,), ()]
Something went wrong with that request. Please try again.