Skip to content

dxtym/pycask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pycask

A log-structured key-value storage engine based on the Bitcask paper. Read more here.

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:
git clone https://github.com/dxtym/pycask.git
  1. Install the package:
pip install -e pycask

Quickstart

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:
poetry install --extras dev
  1. Run unit tests:
pytest tests/ -v

License

Unlicense. See LICENSE for details.

About

Bitcask in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages