Skip to main content

Kvsqlite version Python Versions Downloads

Easy, Simple and powerful key-value database backed by sqlite3.

Features

  • Fast and easy-to-use database
  • Simultaneously asynchronous or synchronous calls
  • Store any data supported by pickle

Requirements

  • Python 3.8+

Installation

pip install kvsqlite

From github (dev version)

pip install git+https://github.com/AYMENJD/Kvsqlite

Documentation

Kvsqlite documentation available at kvsqlite.rtfd.io.

Usage

from kvsqlite import Client # For sync version do: from kvsqlite.sync import Client
import asyncio

async def main():
    async with 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)

            await db.setex(key, 60, "This key has a lifetime of 60 seconds")

            print(await db.get(key))
        else:
            print("Key not found", result)


asyncio.run(main())

Release files for Kvsqlite 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Kvsqlite 0.3.0
File Size Uploaded
kvsqlite-0.3.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Kvsqlite 0.3.0
File Interpreter ABI Platform
kvsqlite-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.6 kB

Release files / kvsqlite-0.3.0.tar.gz

Download URL kvsqlite-0.3.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
62dbecee09516b332a95c653137a7fee22e035bfff73b1ac5d2a874e2f69e077
BLAKE2b-256 checksum
How to use checksums
1fab51b7a4c8b8f6adeb519db675631b6093cdda6ade72e123ccaf21aca18e0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / kvsqlite-0.3.0-py3-none-any.whl

Download URL kvsqlite-0.3.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddbd24632e8770692f09d5ada0cbe3b0cfe45f3feb2437422e6c590d443c3aa3
BLAKE2b-256 checksum
How to use checksums
3543466ceb4124d5050259584c9835e77c66191d59c4694493bcf3b7b1d99a4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page