MagicStorage
This class instantiated and caches loaders which can be acquired with dedicated methods.
Resource storages are neither guaranteed to be cached, nor to be always newly created.
Source code in magic_storage/_magic.py
filesystem(__root)
#
Return local cache storage for current file. This object will be configured to use cache.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
current_file |
str
|
Either directory or file, when file, its parent directory will be used. |
required |
Returns:
Type | Description |
---|---|
FilesystemStorage
|
new storage object. |
Source code in magic_storage/_magic.py
filesystem_no_cache(__root)
#
Return local cache storage for current file. This object will be configured to not use cache.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
current_file |
str
|
Either directory or file, when file, its parent directory will be used. |
required |
Returns:
Type | Description |
---|---|
FilesystemStorage
|
new storage object. |
Source code in magic_storage/_magic.py
Last update:
August 5, 2022
Created: August 5, 2022
Created: August 5, 2022