Python
Requirements
Installation
pip install https://github.com/avelino/chrondb/releases/download/latest/chrondb-latest-py3-none-macosx_14_0_arm64.whlpip install https://github.com/avelino/chrondb/releases/download/latest/chrondb-latest-py3-none-manylinux_2_35_x86_64.whlLibrary path (advanced)
Quick Start
API Reference
ChronDB(data_path: str, index_path: str)
ChronDB(data_path: str, index_path: str)Parameter
Type
Description
put(id, doc, branch=None) -> Dict[str, Any]
put(id, doc, branch=None) -> Dict[str, Any]Parameter
Type
Description
get(id, branch=None) -> Dict[str, Any]
get(id, branch=None) -> Dict[str, Any]Parameter
Type
Description
delete(id, branch=None) -> bool
delete(id, branch=None) -> boolParameter
Type
Description
list_by_prefix(prefix, branch=None) -> List[Dict[str, Any]]
list_by_prefix(prefix, branch=None) -> List[Dict[str, Any]]Parameter
Type
Description
list_by_table(table, branch=None) -> List[Dict[str, Any]]
list_by_table(table, branch=None) -> List[Dict[str, Any]]Parameter
Type
Description
history(id, branch=None) -> List[Dict[str, Any]]
history(id, branch=None) -> List[Dict[str, Any]]Parameter
Type
Description
query(query, branch=None) -> Dict[str, Any]
query(query, branch=None) -> Dict[str, Any]Parameter
Type
Description
close()
close()Document ID Convention
Error Handling
Exception Hierarchy
ChronDBError
ChronDBErrorDocumentNotFoundError
DocumentNotFoundErrorExample
Examples
Full CRUD
Query
History (Time Travel)
Pytest Fixture
Building from Source
Last updated
Was this helpful?