Easy-to-use asynchronous key-value database backed by sqlite3.
Project description
Kvsqlite
![downloads](https://pypi-camo.freetls.fastly.net/a81b6286c2e73ad08ffdab254ec39d79ce2e90e7/68747470733a2f2f696d672e736869656c64732e696f2f707970692f646d2f4b7673716c6974653f7374796c653d666c6174)
Easy, Sample and powerful key-value database backed by sqlite3.
Requirements
- Python3.8+
Installation
pip install kvsqlite
From github (dev version)
pip install git+https://github.com/AYEMNJD/Kvsqlite
Usage
import kvsqlite, asyncio
async def main():
async with kvsqlite.Client("kv.sqlite") as db:
key = "123-456-789"
result = await db.set(key, "Hello world. Bye!")
if await db.exists(key):
get_key = await db.get(key)
print(get_key) # Hello world. Bye!
await db.delete(key)
else:
print("Key not found", result)
await db.close()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Kvsqlite-0.1.0.tar.gz
(6.0 kB
view hashes)