Skip to main content

A simple key-value database in python.

Installation

pip install pykvdb

Usage:

from pykvdb import KVDB
import os

# set db file path, default is './pykvdb'
dbpath = os.path.join(os.path.split(os.path.realpath(__file__))[0], 'kvdb')
# set db file maxsize, default is 10M
dbsize = 10 * 1024 * 1024

with KVDB(path=kvpath, size=dbsize) as kv:
    kv.set('a', 'test')

# get value
with KVDB(path=kvpath, size=dbsize) as kv:
    print(kv.get('a'))

# scan all key-value
with KVDB(path=kvpath, size=dbsize) as kv:
    cur = kv.cursor()
    for k, v in cur:
        print(k.decode(), v.decode())

Metadata

Release files for pykvdb 0.1.3

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

Source distribution (sdist)

Source distribution for pykvdb 0.1.3
File Size Uploaded Provenance
pykvdb-0.1.3.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pykvdb 0.1.3
File Interpreter ABI Platform
pykvdb-0.1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.8 kB

Release files / pykvdb-0.1.3.tar.gz

Download URL pykvdb-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
37adc840e3f212b9c328db3ddc709d6437e1d7578da226df54f7569f26d77d5b
BLAKE2b-256 checksum
How to use checksums
9706d958462623bc653c4bf0984ec88f5d1ecc28ad8eb4dbc16a1acb35d51028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / pykvdb-0.1.3-py2.py3-none-any.whl

Download URL pykvdb-0.1.3-py2.py3-none-any.whl
Size 2.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ef9a87ad71748f69f9017ae7a794ce30270d600c4e8202b721f8f5033032c097
BLAKE2b-256 checksum
How to use checksums
dc37795a2837a69b3cf71a290683202ec5bd6e860f97d86f77c8c198fffe6c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for pykvdb 0.1.3

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.

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