Skip to content

All possible dictionary style operations for storages #7

Description

@hhsecond

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions