Python

UStore for Python

pip install . 1.0.0-rc.1 · d6d40961

Every verb is a batch, reached identically through a Database, a Transaction and a Snapshot, which reads only, so a single operation is a batch of one.

Topics

Installation2version names the package, pre-release included, while ustore.version() answers ustoreversionname, the version of the library the module runs against.
Quickstart79
Collections28A key is a uuid.UUID, its text, sixteen raw bytes, or a non-negative integer read as uuid.UUID(int=n), so integer keys order as integers do.
Reads and Writes14write, set, read, get, contains and remove address binary values by key, while scan, sample and measure walk them, each in the blobs collection its collection= names.
Scans33
Batches and Arenas152A receiver carries what every argument struct of the C ABI puts before its inputs: the view, the executor and the completion.
Transactions65
Snapshots42
Documents12docswrite, docsread, docsgist and docsgather address JSON documents, whole or a field inside each, where a field is a top-level key or a JSON Pointer such as /user/name.
Graphs6graphwriteedges, graphremoveedges, graphwritevertices and graphremovevertices edit a graph collection, while graphreadedges answers Neighborhoods and graphdegrees the degree of every vertex, with None where a vertex is absent.
Errors21
Platform Notes1Each modality joins as one C file beside lib.c, with its verbs declared in lib.h and stubbed in ustore/lib.pyi.