Store
- class pado.io.store.Store(version, store_type)[source]
- pado.io.store.get_store_type(urlpath, *, storage_options=None)[source]
return the store type from an urlpath
- pado.io.store.get_store_metadata(urlpath, *, storage_options=None)[source]
return the store metadata from an urlpath
- class pado.io.store.StoreVersionTuple(store: int, provider: int)[source]
describing storage implementation
-
store:
int Alias for field number 0
-
provider:
int Alias for field number 1
-
store:
- class pado.io.store.DataVersionTuple(identifier: str, version: int)[source]
describing stored data
-
identifier:
str Alias for field number 0
-
version:
int Alias for field number 1
-
identifier:
- class pado.io.store.StoreInfo(store_type: StoreType, store_version: StoreVersionTuple | None, data_version: DataVersionTuple | None)[source]
version information for storage and data
- store_type: StoreType
Alias for field number 0
- store_version: StoreVersionTuple | None
Alias for field number 1
- data_version: DataVersionTuple | None
Alias for field number 2
- class pado.io.store.StoreMigrationInfo(store_info: StoreInfo, target_store_version: int | None = None, target_provider_version: int | None = None, target_data_version: int | None = None)[source]
upgrade migration information for stores
- store_info: StoreInfo
Alias for field number 0
- target_store_version: int | None
Alias for field number 1
- target_provider_version: int | None
Alias for field number 2
- target_data_version: int | None
Alias for field number 3
- can_migrate(store_info)[source]
return the new store info if migration is possible or None otherwise
- Return type:
StoreInfo | None
- pado.io.store.register_store_migration(info, func)[source]
register an upgrade migration function for a pado data provider
- Return type:
None
- pado.io.store.get_migration_registry()[source]
return the upgrade migration registry
- Return type:
Mapping[StoreMigrationInfo,Callable[[DataFrame,str,Dict[str,Any]],Tuple[DataFrame,str,Dict[str,Any]]]]
- pado.io.store.find_migration_path(store_info, migrations)[source]
return a store/data migration path
- pado.io.store.get_store_info(urlpath, *, storage_options=None)[source]
return the store information for a pado store
- pado.io.store.migrate_store(urlpath, *, storage_options=None, dry_run=True)[source]
try migrating a store to a newer version
- pado.io.store.get_dataset_store_infos(ds)[source]
gather store information for all stores in dataset