papertrail.core.collection.recorder module

class papertrail.core.collection.recorder.Recorder(path: str | Path = './.papertrail_cache/examples.json', records: list[ExampleRecord] = NOTHING, adapter: IoAdapter = NOTHING, files: dict = NOTHING)

Bases: object

adapter: IoAdapter
files: dict
path: str | Path
prepare_files() → Self
record_example(example: ExampleRecord) → Self
records: list[ExampleRecord]
write_examples() → Self