{"id":18937444,"url":"https://github.com/bottlepy/bottle-mongo","last_synced_at":"2025-04-15T18:32:05.046Z","repository":{"id":14913777,"uuid":"17637859","full_name":"bottlepy/bottle-mongo","owner":"bottlepy","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-18T09:22:45.000Z","size":18,"stargazers_count":30,"open_issues_count":4,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-10T00:28:33.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bottlepy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-11T16:34:15.000Z","updated_at":"2025-04-05T12:26:14.000Z","dependencies_parsed_at":"2023-02-10T14:15:16.500Z","dependency_job_id":null,"html_url":"https://github.com/bottlepy/bottle-mongo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bottlepy%2Fbottle-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bottlepy","download_url":"https://codeload.github.com/bottlepy/bottle-mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129234,"owners_count":21217311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T12:11:11.535Z","updated_at":"2025-04-15T18:32:00.034Z","avatar_url":"https://github.com/bottlepy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bottle MongoDB\n==============\n\n.. image:: https://travis-ci.org/bottlepy/bottle-mongo.svg?branch=master\n    :target: https://travis-ci.org/bottlepy/bottle-mongo\n\nThis bottle-mongodb plugin integrates MongoDB with your Bottle\napplication. It injects a MongoDB session in your route and handle the\nsession cycle.\n\nSupport pymongo 3 and 2\n\n\nUsage Example:\n\n.. code-block:: python\n\n    from bottle import Bottle ,redirect\n    from bottle.ext.mongo import MongoPlugin\n\n    from bson.json_util import dumps\n\n\n    app = Bottle()\n    plugin = MongoPlugin(uri=\"mongodb://127.0.0.1\", db=\"mydb\", json_mongo=True)\n    app.install(plugin)\n\n    @app.route('/', method='GET')\n    def index(mongodb):\n        return dumps(mongodb['collection'].find())\n\n    @app.route('/create/', method='POST')\n    def create(mongodb):\n        mongodb['collection'].insert({'a': 1, 'b': 2})\n        redirect(\"/\")\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlepy%2Fbottle-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbottlepy%2Fbottle-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottlepy%2Fbottle-mongo/lists"}