diff options
| author | Yuval Adam <_@yuv.al> | 2024-05-07 16:15:48 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-05-07 16:16:02 +0200 |
| commit | c81a26e65aafab049b944a86863e7d851072bd8b (patch) | |
| tree | 6f8824dadb7bf562be59a650bd37e3fb80750f1a /README.md | |
| parent | c0056b2d9f5175d06b39834b013d16fa5d63a485 (diff) | |
Implement basic stash operations
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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") ``` |
