Skip to content

Python bindings for TrailDB, implemented in C. Compatible with a subset of `traildb-python`

License

Notifications You must be signed in to change notification settings

traildb/ctraildb-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrailDB Python bindings -- C implementation

This is a Python library that is compatible with a subset of traildb-python.

Most features of traildb-python are not implemented but the most important feature of scanning a TrailDB is there.

import ctraildb      # Drop-in replacement for `import traildb`.

t = ctraildb.TrailDB('wikipedia-history-small.tdb')

for uuid, trails in t.trails():
    for events in trails:
        print(events.uuid, events.time, events.ip)

These bindings are much faster than traildb-python for scanning tasks, unless you are using pypy (in which case performance gets worse).

Not implemented:

  • Constructing TrailDBs
  • Event filters
  • Most keywords are not accepted in trails
  • No multicursors

About

Python bindings for TrailDB, implemented in C. Compatible with a subset of `traildb-python`

Resources

License

Stars

Watchers

Forks

Packages

No packages published