aiidateam / disk-objectstore

An implementation of an efficient "object store" (actually, a key-value store) writing files on disk and not requiring a running server
https://disk-objectstore.readthedocs.io
MIT License
15 stars 8 forks source link

Implement minimal command line tool? #83

Closed giovannipizzi closed 4 years ago

giovannipizzi commented 4 years ago

I would implement with click, probably call it diskos, and implement at least the basic operations like clean_storage and validate and pack_all_loose, as well as methods to count objects and to get the size.

I don't know if we also want to implement methods to add or remove objects, to avoid that it becomes easy to corrupt data (but maybe a method to export to file a given object with a given key might be useful).

giovannipizzi commented 4 years ago

In this case, make click and tqdm as optional dependencies, and implement progress bars as implemented in #84 and explained in the docstring of validate()

giovannipizzi commented 4 years ago

I am going to close this for now - we will have a command line in AiiDA, and this for now is enough. I will reopen this if there is the need to provide such functionality in the future independently of AiiDA