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

✨ NEW: Add basic CLI #116

Closed chrisjsewell closed 2 years ago

chrisjsewell commented 2 years ago

Added basic commands for container creation, inspection and cleaning. See README tutorial section for details.

Also added __enter__/__exit__ for Container, to allow it to be used as a context manager which calls Container.close() on exit (i.e. closes the database).

codecov[bot] commented 2 years ago

Codecov Report

Merging #116 (08ca3cc) into develop (55c40ff) will decrease coverage by 0.04%. The diff coverage is 98.63%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #116      +/-   ##
===========================================
- Coverage    99.56%   99.52%   -0.05%     
===========================================
  Files            7        8       +1     
  Lines         1601     1674      +73     
===========================================
+ Hits          1594     1666      +72     
- Misses           7        8       +1     
Impacted Files Coverage Δ
disk_objectstore/cli.py 98.55% <98.55%> (ø)
disk_objectstore/container.py 99.39% <100.00%> (+<0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 55c40ff...08ca3cc. Read the comment docs.