• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

embedded graph datastore

graphlite

Build

Graphlite is an MIT-licensed graph DB for Python.

There are currently no embedded graph databases for Python. Graphlite aims to change that by building a simple and fast graph layer over SQLite. Similar to FlockDB, Graphlite only stores adjacency lists, but they can be queried in the style of normal graph databases, e.g. with traversals.

>>> import graphlite as g
>>> db = g.connect(':memory:', graphs=['knows'])

>>> with db.transaction() as t:
...     for person in [2, 3]:
...         t.store(g.V(1).knows(person))
...

>>> db.find(g.V(1).knows).to(list)
[2, 3]

Graphlite inherits it's API from that of FlockDB's. Also, like FlockDB Graphlite only stores the relations between the nodes, which are integers- not the data of the nodes themselves. You will therefore need a high performance database like BerkleyDB or one of the dbm implementations to store your data.

Features

  • Small, easy to learn API with around 100% coverage
  • Lazy generator based API when querying
  • Highly documented codebase

Installation

To install Graphlite, simply:

$ pip install graphlite

More Repositories

1

mailthon

elegant email sending for Python
Python
196
star
2

orchid

very tiny music player
Go
152
star
3

stateless.js

simpler pushstate
JavaScript
133
star
4

tinyrecord

transaction support for TinyDB
Python
93
star
5

evee.js

Modern event binding
JavaScript
28
star
6

korah.js

โ€ผ๏ธ declarative DOM building
JavaScript
25
star
7

octopi

๐Ÿ™ trie based suggestions microlibrary
JavaScript
25
star
8

tinyindex

indexes for tinydb
Python
12
star
9

psync

some p2p thing
Go
11
star
10

closurepr

a better repr for closures
Python
11
star
11

tmux-badges

DRYer badges for tmux
Shell
10
star
12

rope

ropes for golang
Go
10
star
13

nut.js

super simple querySelectorAll wrapper
JavaScript
8
star
14

scell

wrapper around select
Python
7
star
15

slouch

simple launcher using fzf
Shell
6
star
16

signalsdb

query unix signals
Python
6
star
17

hydra

simple multiplexing daemon
Go
5
star
18

vivaldi-go

golang vivaldi coordinates
Go
5
star
19

harlequin

email.mime for the sane
Python
4
star
20

monocypher-py

monocypher bindings for python
C
4
star
21

vclock

vector clock for python
Python
4
star
22

xfs

full text search for files (wip)
Go
4
star
23

promises

type checking for Python
Python
3
star
24

prudent

lazy data structures
Python
3
star
25

dotfiles

My bash and vim settings
C
3
star
26

spheres-from-triangles

creating spheres from triangles
Python
2
star
27

minke.js

๐Ÿณ keyboard shortcuts for humans
JavaScript
2
star
28

crunch-crdt-benchmarks

some crdt benchmarks
JavaScript
1
star
29

bisect.js

Interval Bisection equation solver
JavaScript
1
star
30

rmbd

lets nodes (almost) remember stuff together
Python
1
star
31

kaze

้ขจ - tiny notification daemon
Go
1
star
32

geisha

music playing daemon
Go
1
star
33

rscp

really slow compression package
Python
1
star
34

ai-search-assignment

durham university ai search assignment 2018/19
Go
1
star
35

xhr.js

super tiny xhr
JavaScript
1
star
36

subtle

wip oo language
C
1
star
37

exthread

supercharged threads
Python
1
star
38

ichi

monocypher fun
C
1
star
39

gotools

Command line utilities written in Go
Go
1
star
40

minitube

full page video player
HTML
1
star
41

noterender

renders notes in markdown ๐Ÿ”ฎ
Go
1
star
42

txnmap.js

transactional map for js
JavaScript
1
star
43

flaked

Go
1
star
44

qd-quadtree

experiment in quadtree-ifying triangular meshes
Go
1
star
45

soda-rz

๐Ÿป soda dungeon first round damage estimator
Go
1
star
46

maze-transform

maze as 2d array of booleans => graph
Python
1
star
47

kingpin

poc ssh ca automation
Go
1
star