kedro.versioning.VersionJournal¶
-
class
kedro.versioning.
VersionJournal
(record_data)[source]¶ Bases:
object
VersionJournal
class provides journal logging to enable versioning support for Kedro project.Methods
VersionJournal.__init__
(record_data)Initialise VersionJournal
as a session of the journal versioning, and log the project context with an unique identifier.VersionJournal.log_catalog
(dataset_name, …)Log journal record for DataCatalog
.-
__init__
(record_data)[source]¶ Initialise
VersionJournal
as a session of the journal versioning, and log the project context with an unique identifier.Parameters: record_data ( Dict
[str
,Any
]) – JSON serializable dictionary specific to project context.
-
log_catalog
(dataset_name, operation, version=None)[source]¶ Log journal record for
DataCatalog
.Parameters: - dataset_name (
str
) – Name of dataset being logged. - operation (
str
) – Operation on dataset, one of {‘save’, ‘load’}. - version (
Optional
[str
]) – Dataset version corresponding to operation (i.e. if operation is ‘save’ then this is ‘save_version’).
Return type: None
- dataset_name (
-