Skip to main content

bottle-lmdb

Lightning Memory-Mapped Database (LMDB) plugin for Bottle.

Usage:

from bottle import Bottle
from bottle_lmdb import LMDBPlugin

app = Bottle()
plugin = LMDBPlugin("/path/to/db")
app.install(plugin)

@app.get("/write/<key>/<value>")
def write(key, value, db):
    with db.begin(write=True) as txn:
        txn.put(key.encode(), value.encode())
    return "ok"

@app.get("/read/<key>")
def read(key, db):
    with db.begin() as txn:
        value = txn.get(key.encode())
    return value.decode() if value else "not found"

Metadata

Release files for bottle-lmdb 0.1.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 bottle-lmdb 0.1.0
File Size Uploaded Provenance Actions
bottle_lmdb-0.1.0.tar.gz 1.7 kB Without provenance Details for bottle_lmdb-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bottle-lmdb 0.1.0
File Interpreter ABI Platform Actions
bottle_lmdb-0.1.0-py3-none-any.whl Python 3 none any Details for bottle_lmdb-0.1.0-py3-none-any.whl

Total release size: 4.4 kB

Release files / bottle_lmdb-0.1.0.tar.gz

Download URL bottle_lmdb-0.1.0.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad7f0fc420061a721d265bec050cb3f2db56a7346dcd8fc8be8721b650a2df02
BLAKE2b-256 checksum
How to use checksums
a00b654f6ea4066f4c21d60749b40983be133fdc05d48f9ad35763421965ea82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / bottle_lmdb-0.1.0-py3-none-any.whl

Download URL bottle_lmdb-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd67e60f7ab7df31c51ecb1fbe6add0c053e6d8fe62c03f5fd116b3dbc816916
BLAKE2b-256 checksum
How to use checksums
a580a7ab87ca71a37e1a84cdc08a44f84451c19629518b2be3630e8d8da62820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Security for bottle-lmdb 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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