patx/mongokv
add example and install block to readme for quick browsing
Commit d627905 · patx · 2025-12-16T20:40:44-05:00
Comments
No comments yet.
Diff
diff --git a/README.md b/README.md
index cf38b5e..9a9bfea 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,24 @@
[](https://patx.github.io/mongokv) is a tiny sync/async key-value store
backed by PyMongo that provides a dead-simple Redis-like API (`set`, `get`, etc). Safe across threads, processes, and ASGI workers.
[Read the API docs and user guide to get started](https://patx.github.io/mongokv).
+
+
+### Usage
+
+```
+>>> from mongokv import Mkv
+
+>>> db = Mkv('mongodb://localhost:27071')
+>>> db.set('hello', {'name': 'world', 'status': 'green'})
+
+>>> db.get('hello')
+{'name': 'world', 'status': 'green'}
+```
+
+
+### Install
+
+```
+pip3 install mongokv
+```
+