micro key-value in-memory database
lightweight in-memory, key-value databases server & client
| Size | Type | Content |
|---|---|---|
| 4 bytes | 2 bytes | x bytes |
max packet size up to 5MB
- client & async server
query,set,remove,purge,update_ttlcommands- queries pagination
- database items ttl (time to live) + auto removal of expired ones
- support for multiple databases
- no external dependencies
- fully type hinted
package can be installed via pip just add following line to your
requirements.txt.
whimdb @ git+https://github.com/zNitche/whimdb.git@<version>
server can by run via
whimdb-server --port 8080
Client and Server example scripts can be found in /examples directory.
FROM python:3.12-slim
RUN pip3 install git+https://github.com/zNitche/whimdb.git@v1.2.3
services:
whimdb:
command: whimdb-server --port 6000
container_name: whimdb
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.whimdb
project's test suit can be run via
pip3 install -r requirements/tests.txt
pytest -v tests/