semvec/pypi-packages huggingface dataset:
microdbx 0.1.1
Lightweight key-value database for microcontrollers with Flash and RAM storage backends.
License: MIT
Requires Python: >=3.8
Keywords: db, flash, ram, microcontroller, micropython, iot

<p align="center">
  <img alt="golangci-lint logo" src="https://avatars.githubusercontent.com/u/252895549?s=400&u=6c747c431c2844620af7772fcd716ef423a6ab1d&v=4" height="150" />
  <h3 align="center">netcorelink/microdbx</h3>
  <p align="center">Lightweight key-value database for microcontrollers with Flash and RAM storage backends.</p>
</p>

---

`netcorelink/microdbx` is a Lightweight key-value database for microcontrollers with Flash and RAM storage backends.

## Install by `pip` `microdbx`

```bash
pip install microdbx
```

## Install by `MicroPython` `microdbx`

For MicroPython, installation is performed by copying `microdbx/*` the library files to the device's file system.

example: `microdbx/*` - `:lib/*`

## A quick example

### Flash

```python
from microdbx import FlashDB

db = FlashDB(max_size=5)

db.set("wifi.ssid", "WiFi-DOM.ru")
db.set("wifi.password", "password")

print(db.get("wifi.password"))
```

### Ram

```python
from microdbx.ram import RAMDB

db = RAMDB(max_size=5)

db.set("wifi.ssid", "WiFi-DOM.ru")
db.set("wifi.password", "password")

print(db.get("wifi.ssid"))
```