miftahdb

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
- Python3.8+
Installation
pip install miftahdb
From github (dev version)
pip install git+https://github.com/miftahDB/miftahdb-python
Documentation
miftahdb documentation available at miftahdb.rtfd.io.
Usage
from miftahdb import Client # For sync version do: from miftahdb.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.set(key, "This key has a lifetime of 60 seconds", 60)
print(await db.get(key))
else:
print("Key not found", result)
asyncio.run(main())
Metadata
Release files for miftahdb 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| miftahdb-0.2.4.tar.gz | 11.0 kB | Without provenance | Details for miftahdb-0.2.4.tar.gz |
Release files / miftahdb-0.2.4.tar.gz
| Download URL | miftahdb-0.2.4.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de2035dd89f28d3154f84b10a881cbcbe09ce401d311a67cde934598f691722
|
|
BLAKE2b-256 checksum How to use checksums |
5d6da09c98c0f23d3deadaa44dec6e8b67b7a36b4bbcf900c2b7745722337f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for miftahdb 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.