{ "info": { "author": "Arif Kurniawan", "author_email": "arifk97@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Bottle-PgSQL is based on Bottle-MySQL and Bottle-sqlite.\nBottle-PgSQL is a plugin that integrates PostgreSQL with your Bottle\napplication. It automatically connects to a database at the beginning of a\nrequest, passes the database handle to the route callback and closes the\nconnection afterwards.\n\nTo automatically detect routes that need a database connection, the plugin\nsearches for route callbacks that require a `db` keyword argument\n(configurable) and skips routes that do not. This removes any overhead for\nroutes that don't need a database connection.\n\nResults are returned as dictionaries.\n\nUsage Example::\n\n import bottle\n import bottle_pgsql\n\n app = bottle.Bottle()\n plugin = bottle_pgsql.Plugin('dbname=db user=user password=pass')\n app.install(plugin)\n\n @app.route('/show/:')\n def show(item, db):\n db.execute('SELECT * from items where name=\"%s\"', (item,))\n row = db.fetchone()\n if row:\n return template('showitem', page=row)\n return HTTPError(404, \"Page not found\")", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/raisoblast/bottle-pgsql", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bottle-pgsql", "package_url": "https://pypi.org/project/bottle-pgsql/", "platform": "any", "project_url": "https://pypi.org/project/bottle-pgsql/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/raisoblast/bottle-pgsql" }, "release_url": "https://pypi.org/project/bottle-pgsql/0.2/", "requires_dist": null, "requires_python": null, "summary": "PgSQL integration for Bottle", "version": "0.2" }, "last_serial": 1100847, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1062bbcc2410d6d7947a1435116a0aa9", "sha256": "2b5bb588620e2d277965f7451347df6ec65e913b6fb45e28a528b93d0d9a0091" }, "downloads": -1, "filename": "bottle-pgsql-0.1.tar.gz", "has_sig": false, "md5_digest": "1062bbcc2410d6d7947a1435116a0aa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2652, "upload_time": "2012-07-02T10:54:57", "url": "https://files.pythonhosted.org/packages/47/8c/2aed83dc3410b9e859c0aa3b2659fd18aa4e90f74ae4b48ae79adc904cf5/bottle-pgsql-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "faf9f35c7fd75fa822b912dc1eb3b942", "sha256": "da77928e62d011f718a64e3f9668d379828dc30ef715280d7c22160959f7c3b0" }, "downloads": -1, "filename": "bottle-pgsql-0.2.tar.gz", "has_sig": false, "md5_digest": "faf9f35c7fd75fa822b912dc1eb3b942", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2691, "upload_time": "2014-05-22T10:10:24", "url": "https://files.pythonhosted.org/packages/42/63/b49ff75d5edd7b1c5c515e475c40f6dd49e5196d3e62a5dca1c38a2179c4/bottle-pgsql-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "faf9f35c7fd75fa822b912dc1eb3b942", "sha256": "da77928e62d011f718a64e3f9668d379828dc30ef715280d7c22160959f7c3b0" }, "downloads": -1, "filename": "bottle-pgsql-0.2.tar.gz", "has_sig": false, "md5_digest": "faf9f35c7fd75fa822b912dc1eb3b942", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2691, "upload_time": "2014-05-22T10:10:24", "url": "https://files.pythonhosted.org/packages/42/63/b49ff75d5edd7b1c5c515e475c40f6dd49e5196d3e62a5dca1c38a2179c4/bottle-pgsql-0.2.tar.gz" } ] }