MetadataAccessor¶
- class data_base.isf_data_base.MetadataAccessor(db)¶
- Access the metadata of some database key. - Used by - ISFDataBaseto conveniently acces metadata as such:- >>> db = ISFDataBase('path') >>> db.metadata <class 'data_base.isf_data_base.MetadataAccessor'> >>> db['somekey'] "somevalue" >>> db.metadata['somekey'] { 'dumper': 'to_cloudpickle', 'time': <date-time>, 'metadata_creation_time': 'post_hoc', 'version': <git commit hash> }- It does not have a set method, as the metadata is set automatically when a key is set. Upon accidental metadata removal, the DataBase will try to estimate the metadata itself using - _update_metadata_if_necessary().- keys()- Return the keys of the - db
Documentation unclear, incomplete, broken or wrong? Let us know