rocket-store
SKILL.md
Rocket-Store Skill
This skill allows you to use the Rocket-Store package to store and retrieve data locally as JSON files. It functions as a lightweight, searchable database using the filesystem.
Prerequisites
- Python installed in the environment.
Rocket-Storepackage installed:pip install Rocket-Store
Usage Guide
Basic Initialization
from Rocketstore import Rocketstore
rs = Rocketstore()
Configuring Data Storage Area
By default, Rocket-Store uses a temporary system directory. You can specify a custom directory:
rs.options(data_storage_area="./my_local_db", data_format=Rocketstore._FORMAT_JSON)
Storing Data (Post)
# rs.post(collection, key, record, flags)
rs.post("users", "user_1", {"name": "Alice", "age": 30}, Rocketstore._FORMAT_JSON)
Retrieving Data (Get)
# Get a specific record
result = rs.get("users", "user_1")
# Get all records in a collection
all_users = rs.get("users")
# Wildcard search
search_results = rs.get("users", "user_*")
Deleting Data
# Delete a specific record
rs.delete("users", "user_1")
# Delete an entire collection
rs.delete("users")
Step-by-Step Workflow
- Setup: Ensure the
Rocket-Storepackage is installed. - Options: Set the
data_storage_areaif you want the data to persist in a specific project folder. - Operations: Use
post,get, anddeleteto manage your local data. - Verification: Check the specified storage directory to see the JSON files created.
Manual Verification
Confirm that data is being saved in the directory specified in data_storage_area. Each collection will be a subdirectory, and each key will be a JSON file.
Weekly Installs
3
Repository
klich3/rocket-s…s-pythonFirst Seen
5 days ago
Security Audits
Installed on
qoder3
gemini-cli3
antigravity3
github-copilot3
codex3
kimi-cli3