Skip to main content

Bottle MongoDB

This bottle-mongodb plugin integrates MongoDB with your Bottle application. It injects a MongoDB session in your route and handle the session cycle.

Usage Example:

from bottle import Bottle ,redirect
    from bottle.ext.mongo import MongoPlugin

from bson.json_util import dumps


    app = Bottle()
    plugin = MongoPlugin(uri="mongodb://127.0.0.1", db="mydb", json_mongo=True)
    app.install(plugin)

    @app.route('/', method='GET')
    def index(mongodb):
            return dumps(mongodb['collection'].find())

    @app.route('/create/', method='POST')
    def create(mongodb):
            mongodb['collection'].insert({'a': 1, 'b': 2})
    redirect("/")

Metadata

Release files for bottle-mongo 0.2.2

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-mongo 0.2.2
File Size Uploaded Provenance Actions
bottle-mongo-0.2.2.tar.gz 3.2 kB Without provenance Details for bottle-mongo-0.2.2.tar.gz

Release files / bottle-mongo-0.2.2.tar.gz

Download URL bottle-mongo-0.2.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8e59c05e2415895db95f24d5b4ab16125730f94964396646d59328323261c36e
BLAKE2b-256 checksum
How to use checksums
ab9175daa3e34e2d49019f7027b67609ce27f4cf19242ab59fa6d0d316e005b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bottle-mongo 0.2.2

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.2.2 This release

1 release file 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