eon.concorpus

Store path-based con blobs in a readcon-db corpus.

readcon still parses every frame. The corpus is a second copy: one trajectory per distinct path plus blob, next to the run when config.ini is at most eight directories up, otherwise beside the con file. A missing readcon_db install leaves the con file as the only copy.

Module Contents

Functions

traj_id

FNV-1a 64 over the absolute path, a NUL, and the con text.

corpus_dir

Directory of the LMDB corpus for this con path.

mirror_con_text

Insert one con blob. Identical path-and-text pairs are stored once.

stored_frame_text

Frame text for this path’s current blob, or None when the corpus has no copy.

mirror_con_path

Insert the con file’s current bytes.

Data

API

eon.concorpus.logger

‘getLogger(…)’

eon.concorpus.traj_id(path: str, text: str) → int[source]

FNV-1a 64 over the absolute path, a NUL, and the con text.

eon.concorpus.corpus_dir(con_path: pathlib.Path) → pathlib.Path[source]

Directory of the LMDB corpus for this con path.

eon.concorpus.mirror_con_text(path, text: str) → None[source]

Insert one con blob. Identical path-and-text pairs are stored once.

eon.concorpus.stored_frame_text(path) → str | None[source]

Frame text for this path’s current blob, or None when the corpus has no copy.

eon.concorpus.mirror_con_path(path) → None[source]

Insert the con file’s current bytes.