~jheckt/Basket

A key:value store for my infrastructure
rust re-write of client complete
remove quotes from string rust version
learning rust, so rewriting the client in rust. can get and set, need to read config next

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~jheckt/Basket
read/write
git@git.sr.ht:~jheckt/Basket

You can also use your local clone with git send-email.

#Basket

A key:value store!

#Configuration

  • basket-conf.json must go in ~/.local/basket/basket-conf.json.

  • basket-server-conf.json must go in the same directory as basket-server.py.

#Run

# Basket Server
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python basket-server.py

Place basket.py in your path as basket.

Bender :: py/projects/Basket ‹main*› % basket --help                                                    127 ↵
Mode not accepted, use 'get' or 'set'.

Usage: basket set <key> <value> -- Set value in store
       basket get <key> -- Get value in store

#Examples

Use a file as input

Bender :: ~ % basket set testfile "$(cat Untitled.ipynb)"                                               130 ↵
{
    "status": "success"
}
Bender :: ~ % basket get testfile                                                                            
{
 "cells": [],
 "metadata": {},
 "nbformat": 4,
 "nbformat_minor": 5
}