minimalkv.net.azurestore module¶
- class minimalkv.net.azurestore.AzureBlockBlobStore(conn_string=None, container=None, public=False, create_if_missing=True, max_connections=2, max_block_size=None, max_single_put_size=None, checksum=False, socket_timeout=None)¶
Bases:
KeyValueStore- property blob_container_client¶
- close()¶
Close container_client and service_client ports, if opened.
- iter_keys(prefix=None)¶
Iterate over all keys in the store starting with prefix.
Parameters¶
- prefixstr, optional, default = ‘’
Only iterate over keys starting with prefix. Iterate over all keys if empty.
Raises¶
- IOError
If there was an error accessing the store.
- iter_prefixes(delimiter, prefix='')¶
Iterate over unique prefixes in the store up to delimiter, starting with prefix.
If
prefixcontainsdelimiter, return the prefix up to the first occurrence of delimiter after the prefix.The default uses an naive key iteration. Some backends may implement more efficient methods.
Parameters¶
- delimiterstr, optional, default = ‘’
Delimiter up to which to iterate over prefixes.
- prefixstr, optional, default = ‘’
Only iterate over prefixes starting with prefix.
Raises¶
- IOError
If there was an error accessing the store.