summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-05-07 16:15:48 +0200
committerYuval Adam <_@yuv.al>2024-05-07 16:16:02 +0200
commitc81a26e65aafab049b944a86863e7d851072bd8b (patch)
tree6f8824dadb7bf562be59a650bd37e3fb80750f1a /README.md
parentc0056b2d9f5175d06b39834b013d16fa5d63a485 (diff)
Implement basic stash operations
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index ee3df48..7eebf3e 100644
--- a/README.md
+++ b/README.md
@@ -25,6 +25,12 @@ Save it to file:
```python
from ymlstash import YmlStash
-stash = YmlStash("path/to/db")
-stash.save(user)
+stash = YmlStash(User, "path/to/db")
+stash.save("yuval", user)
+```
+
+Load from file:
+
+```python
+user = stash.load("yuval")
```