Metadata-Version: 2.1
Name: Kvsqlite
Version: 0.1.0
Summary: Easy-to-use asynchronous key-value database backed by sqlite3.
Home-page: https://github.com/AYMENJD/kvsqlite
Author: AYMEN Mohammed
Author-email: let.me.code.safe@gmail.com
License: MIT
Project-URL: Source, https://github.com/AYMENJD/kvsqlite
Project-URL: Tracker, https://github.com/AYMENJD/kvsqlite/issues
Keywords: asyncio,sqlite,sqlite3,key-value,database,redis
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Kvsqlite [![version](https://img.shields.io/pypi/v/Kvsqlite?style=flat&logo=pypi)](https://pypi.org/project/Kvsqlite) [![downloads](https://img.shields.io/pypi/dm/Kvsqlite?style=flat)](https://pypistats.org/packages/kvsqlite)
Easy, Sample and powerful key-value database backed by sqlite3.

### Requirements

- Python3.8+

### Installation

```bash
pip install kvsqlite
```
From github (dev version)
```bash
pip install git+https://github.com/AYEMNJD/Kvsqlite
```

### Usage

```python
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())
```
