Description
Stockroom provides dictionary-like access mechanism for its storages but all the dictionary-style operations are not possible.
What's possible now
# assignment to keys
stock.data['col', 'sample'] = array
stock.model['name'] = model
stock.tag['key'] = 'val'
# retrieval from keys
print(stock.tag['key'])
What's needed
# fetch all keys, values and items
stock.tag.keys()
stock.tag.values()
stock.tag.items()
# length
len(stock.tag)
# delete
del stock.tag['key']
# contain check
'key' in stock.tag
Description
Stockroom provides dictionary-like access mechanism for its storages but all the dictionary-style operations are not possible.
What's possible now
What's needed