graflo.architecture.backend.layout¶
Path conventions for GraFlo file backend directories.
Attributes¶
CHUNK_SUFFIX = '.jsonl.gz'
module-attribute
¶
EDGES_DIR = 'edges'
module-attribute
¶
INDEX_FILENAME = 'INDEX.json'
module-attribute
¶
SCHEMA_FILENAME = 'schema.yaml'
module-attribute
¶
VERTICES_DIR = 'vertices'
module-attribute
¶
Classes¶
GraFloLayout
¶
Deterministic path builder for a GraFlo backend root directory.
Source code in graflo/architecture/backend/layout.py
Attributes¶
edges_dir
property
¶
index_path
property
¶
root = root.resolve()
instance-attribute
¶
schema_path
property
¶
vertices_dir
property
¶
Methods:¶
__init__(root)
¶
edge_chunk_path(edge_key, chunk_index)
¶
edge_key_to_index_name(edge_key)
staticmethod
¶
Human-readable edge key when safe, otherwise JSON-array encoding.