A log-structured key-value storage engine based on the Bitcask paper. Read more here.
- Simple API: Easy-to-use key-value interface
- Fast Operations: Constant time reads and writes
- Merge Process: Automatic compaction to reclaim disk space
- Clone the repository:
git clone https://github.com/dxtym/pycask.git
- Install the package:
pip install -e pycask
from pycask import Pycask
p = Pycask('/path/to/data')
p.put('key1', 'value1')
p.put('key2', 'value2')
p.delete('key2')
value = p.get('key1')
- Install with dev dependencies:
poetry install --extras dev
- Run unit tests:
pytest tests/ -v
Unlicense. See LICENSE for details.