Metadata-Version: 2.4
Name: mempy_miladtsx
Version: 0.2.0
Summary: A lightweight in-memory store in pure Python
Author-email: TSX <miladtsx@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/miladtsx/mempy
Project-URL: Issues, https://github.com/miladtsx/mempy/issues
Keywords: memory,in-memory,store,python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 🧠 MemPy — A Minimal In-Memory Key-Value Store

MemPy is a minimal, self-contained Python in-memory key-value store inspired by Redis. It supports basic commands (`SET`, `GET`, `DELETE`, `INCR`) and optional TTL (Time-To-Live) expiration.

> ⚠️ Not production-ready.

## Features

- Simple key-value storage
- Optional TTL (lazy expiration)
- Integer increment support
- No dependencies

## Installation

```bash
pip install mempy-miladtsx
```

## Example Usage

```python
from mempy_miladtsx.mempy import MemPy

mem = MemPy()
mem.set("foo", "bar", ttl=10)
print(mem.get_value("foo"))
```

## Contribution

[contribution](./CONTRIBUTING.md)

## Roadmap

- [ ] Eager TTL expiration (background thread)
- [ ] More data types (sets, lists, hashes)
- [ ] Persistence (AOF/RDB)
- [ ] Pub/Sub, CLI

## License

See [LICENSE](LICENSE).
