A simple JSON-based key-value store
Project description
SaveKit
SaveKit is a lightweight and easy-to-use key-value storage toolkit using JSON files for persistence. It's ideal for storing configurations, user preferences, flags, or simple state data in any Python project.
Features
- ✅ Simple JSON-based key-value storage
- 🐍 Pure Python, no dependencies
- 💾 Persistent across executions
- 🔄 Lazy loading (loads only when accessed)
- 🧪 Ready for testing and packaging
Installation
pip install savekit
Usage
from savekit import SaveKit
db = SaveKit()
# Store a value
db.put("theme", "dark")
# Retrieve a value
print(db.get("theme")) # Output: dark
# Remove a value
db.remove("theme")
# Get all stored data
print(db.get_all())
# Reset everything
db.reset()
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
savekit-1.0.0.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file savekit-1.0.0.tar.gz.
File metadata
- Download URL: savekit-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fde61e2b533b86f470e397f13d0eb6803f81428ba8c5c16d0970bef4df699bc
|
|
| MD5 |
9e8a608718628590020e1eed4809ba45
|
|
| BLAKE2b-256 |
ed58beb81690bbd120c134c882784d3e56782f7ca16683b2d587d0f2a3c4778f
|
File details
Details for the file savekit-1.0.0-py3-none-any.whl.
File metadata
- Download URL: savekit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73b823654b94c75ea9d5eb73ce80d208454960a843ddb190ee0c04b8348072fa
|
|
| MD5 |
70f9222108cf9fe2696171f8221c460c
|
|
| BLAKE2b-256 |
fffa99cf579ed1462bee26f1b68bb2e2b8840b1076835e50b07353dc975a45b7
|