https://github.com/dxtym/pycask
Bitcask in Python
https://github.com/dxtym/pycask
Last synced: 10 months ago
JSON representation
Bitcask in Python
- Host: GitHub
- URL: https://github.com/dxtym/pycask
- Owner: dxtym
- License: unlicense
- Created: 2025-08-28T18:08:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-06T10:50:40.000Z (10 months ago)
- Last Synced: 2025-09-06T12:31:38.671Z (10 months ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pycask
A log-structured key-value storage engine based on the Bitcask paper. Read more [here](https://riak.com/assets/bitcask-intro.pdf).
## Features
- **Simple API**: Easy-to-use key-value interface
- **Fast Operations**: Constant time reads and writes
- **Merge Process**: Automatic compaction to reclaim disk space
## Installation
1. Clone the repository:
```bash
git clone https://github.com/dxtym/pycask.git
```
2. Install the package:
```bash
pip install -e pycask
```
## Quickstart
```python
from pycask import Pycask
p = Pycask('/path/to/data')
p.put('key1', 'value1')
p.put('key2', 'value2')
p.delete('key2')
value = p.get('key1')
```
## Development
1. Install with dev dependencies:
```bash
poetry install --extras dev
```
2. Run unit tests:
```bash
pytest tests/ -v
```
## License
Unlicense. See [LICENSE](LICENSE) for details.