envmw

Key-Value Service in RAM

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.6
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-08-30 07:09

Authors

  • Pulux

Installation

nimble install envmw
choosenim install envmw
git clone https://pf4sh.eu/git/pulux/envmw

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
envmw - - - - - - -

Dependencies

Package Version Optional
nim >= 2.0", "jsony", "mike >= 1.3.3", "argparse No

Source

Repository https://pf4sh.eu/git/pulux/envmw
Homepage https://pf4sh.eu/git/pulux/envmw
Registry Source nimble_official

README

KV Service via local Environment Variables

It requires a key as path and any string as value, optional you can set an expire time in seconds.

To get the value back, request the key-path starting /get.

Examples

  • set: curl -s -X POST http://127.0.0.1:6380 -d "key=/app/sub/key&value='{\"pi\":3.14}'&expire=3"
  • set: curl -s -X POST http://127.0.0.1:6380/set --header "Content-Type: application/json" -d '{"key":"/app/sub/key2", "value":"Hi", "expire":3}'
  • get: curl -s http://127.0.0.1:6380/get/app/sub/part/key

shell use

while true; do bin/envmwc set /sys/date "date=$(date --rfc-3339=ns)"; sleep 0.1; done