Skip to main content

Bottle MongoDB

https://travis-ci.org/bottlepy/bottle-mongo.svg?branch=master

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.4

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

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

Download URL bottle-mongo-0.2.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1ed223afe76dc5bed40f401e87de71fb2ce2073c40e03b23a3f464c639cb3edc
BLAKE2b-256 checksum
How to use checksums
9a9db2468f257d67a2bf9a7fcf72ca114ef5e991f971fa907c86480030c330b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bottle-mongo 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.

Release history Release notifications | RSS feed

This release

0.2.4 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