anystore.logic.virtual
VirtualIO
Thin wrapper around an open binary file handle with extra metadata.
Exposes the full :class:BinaryIO interface via delegation.
Source code in anystore/logic/virtual.py
VirtualIO
Thin wrapper around an open binary file handle with extra metadata.
Exposes the full :class:BinaryIO interface via delegation.
Source code in anystore/logic/virtual.py
get_virtual_store(prefix='anystore-')
Get a temporary store at local filesystem tmp dir, cleaned up after leaving the context
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prefix
|
str
|
Custom name prefix for the tmpdir |
'anystore-'
|
Yields:
| Type | Description |
|---|---|
Store
|
Store instance |