minimalkv.git module

class minimalkv.git.GitCommitStore(repo_path: str, branch: bytes = b'master', subdir: bytes = b'')

Bases: KeyValueStore

Store using git.

Parameters

repo_pathstr

Path to the repository.

branchbytes, optional, default = b”master”

Branch to use.

subdirbytes, optional, default = b””

Subdirectory of the repository to use.

AUTHOR = 'GitCommitStore (minimalkv 1.9.1.post14+g0f53bf4.d20240429) <>'
TIMEZONE = None
iter_keys(prefix: str = '') Iterator[str]

Iterate over all keys in the store starting with prefix.

Parameters

prefixstr, optional, default = ‘’

Only iterate over keys starting with prefix. Iterate over all keys if empty.

Raises

IOError

If there was an error accessing the store.