{ "info": { "author": "Keith Gaughan", "author_email": "k@stereochro.me", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://secure.travis-ci.org/kgaughan/dbkit.png?branch=master\n :target: http://travis-ci.org/kgaughan/dbkit\n\n.. image:: https://pypip.in/v/dbkit/badge.png\n :target: https://pypi.python.org/pypi/dbkit/\n\n**dbkit** is a library that abstracts away at least part of the pain\ninvolved in dealing with `DB-API 2`_ compatible database drivers.\n\nHere's an example::\n\n from dbkit import connect, query\n from contextlib import closing\n import sqlite3\n\n with connect(sqlite3, 'counters.db') as ctx, closing(ctx):\n for counter, value in query('SELECT counter, value FROM counters'):\n print \"%s: %d\" % (counter, value)\n\nOverview\n========\n\n*dbkit* is intended to be used in circumstances where it is impractical\nor overkill to use an ORM such as `SQLObject`_ or `SQLAlchemy`_, but it\nwould be useful to at least abstract away some of the pain involved in\ndealing with the database.\n\nFeatures:\n\n- Rather than passing around database connections, statements are executed\n within a database `context`_, thus helping to decouple modules that\n interface with the database from the database itself and its connection\n details.\n- Database contexts contain references to the exceptions exposed by the\n database driver, thus decoupling exception handling from the database\n driver.\n- Easier to use transaction handling.\n- Easier iteration over resultsets.\n- Connection pooling. In addition, any code using pooled connections has\n no need to know connection pooling is in place.\n- Query logging.\n\nNon-aims:\n\n- Abstraction of SQL statements. The idea is to get rid of the more\n annoying but necessary boilerplate code involved in dealing with\n `DB-API 2`_ drivers, not to totally abstract away SQL itself.\n\nInstallation\n============\n\n*dbkit* can be installed with either either pip_ (recommended)::\n\n $ pip install dbkit\n\nOr with easy_install_::\n\n $ easy_install dbkit\n\nDevelopment\n===========\n\nThe repos can be found on `Github `_ while\nthe documentation can be found on `Read the Docs\n`_.\n\n.. _DB-API 2: http://www.python.org/dev/peps/pep-0249/\n.. _SQLObject: http://sqlobject.org/\n.. _SQLAlchemy: http://sqlalchemy.org/\n.. _context: http://docs.python.org/library/contextlib.html\n.. _pip: http://www.pip-installer.org/\n.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall\n\n\n.. _changelog:\n\nChange history\n==============\n\n.. _version-0.2.4:\n\n0.2.4 (2015-11-30)\n------------------\n\n* Python 3 support.\n\n.. _version-0.2.3:\n\n0.2.3 (2015-11-26)\n------------------\n\n* `Context.cursor()` now always creates a transaction. The lack of this outer\n transaction meant that PostgreSQL would end up with a large number of idle\n transactions that had neither been committed or rolled back.\n\n.. _version-0.2.2:\n\n0.2.2 (2013-04-04)\n------------------\n\n* Scrap `unindent_statement()`.\n* Derive all dbkit exceptions from `Exception`.\n* Clean up connection pinging code.\n* Add `make_placeholders()` for generating statement placeholders safely.\n* Add `to_dict()` for converting resultsets to dicts mapped off of a\n particular field.\n\n.. _version-0.2.0:\n\n0.2.0 (2012-10-16)\n------------------\n\n* Add `last_row_id()`.\n* Pools now can have custom mediators.\n* Cursors are now tracked.\n* Pooled connections are no longer closed prematurely.\n* Row factories are now usable outside of context safely.\n\n.. _version-0.1.4:\n\n0.1.4 (2012-10-11)\n------------------\n\n* `execute*()` now returns the number of affected rows.\n* Add `last_row_count` and `last_row_id` to `Context`.\n* Remove `DummyPool` and `ThreadAffinePool`, though the latter may be\n returning.\n* Stablise the behaviour of `Pool` when dealing with expired connections.\n* Documentation version is now pegged directly to the library.\n\n.. _version-0.1.2:\n\n0.1.2 (2012-09-02)\n------------------\n\n* Initial revision with a changelog.\n\n.. vim:set ft=rst:", "description_content_type": null, "docs_url": "https://pythonhosted.org/dbkit/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kgaughan/dbkit/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "dbkit", "package_url": "https://pypi.org/project/dbkit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dbkit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/kgaughan/dbkit/" }, "release_url": "https://pypi.org/project/dbkit/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "DB-API made easier", "version": "0.2.4" }, "last_serial": 1842711, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "3faea8a711360d9e06e30fd86931e565", "sha256": "7523f7335fef316a704cebf4444eb3897ddc0f009b4d264a5cc13e3db3b6c253" }, "downloads": -1, "filename": "dbkit-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3faea8a711360d9e06e30fd86931e565", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23639, "upload_time": "2012-08-16T11:32:27", "url": "https://files.pythonhosted.org/packages/72/5a/79e339f7dcec394447a3becbdd75b25de4ed1afad9dbf7bdc4d8cb284b5a/dbkit-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c8cae0dce55659ea14936c3ff35efd8c", "sha256": "356b231a9e44e82c18266338381ab8b6bbd0576755cb6c2dc88be244a9135192" }, "downloads": -1, "filename": "dbkit-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c8cae0dce55659ea14936c3ff35efd8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24292, "upload_time": "2012-08-27T00:57:34", "url": "https://files.pythonhosted.org/packages/e6/f9/88e246121aa03b4f92ce7561b29e62f507fde753d4a1a394e5c323e5f5f3/dbkit-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d6a7b585fbf7821b592d079d8dda2a82", "sha256": "af12944f397d0ec4f0a19dab67276535ef4321b648c2dc898ab83f8875b3df52" }, "downloads": -1, "filename": "dbkit-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d6a7b585fbf7821b592d079d8dda2a82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22117, "upload_time": "2012-09-26T09:50:30", "url": "https://files.pythonhosted.org/packages/2b/a0/02784e9485bd9ab43d62f1fbfcb2984685a125ff3bb4ed9e823867a2e055/dbkit-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "82fd29292add2ff09f31b7be63020bcb", "sha256": "6459990dd3d30042dea75519a5118d5253e1b24749d5cc279bd08f3de460275b" }, "downloads": -1, "filename": "dbkit-0.1.4.tar.gz", "has_sig": false, "md5_digest": "82fd29292add2ff09f31b7be63020bcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22639, "upload_time": "2012-10-11T12:10:55", "url": "https://files.pythonhosted.org/packages/b7/ed/0047f0ff7e7f95655259214d751d24f06c22e31d6690d275f5b4fe04c521/dbkit-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "28d4b9fa39b5d192a56f1b06d2649120", "sha256": "2cc81febdaffa4a8f10b2e421f9ba6ff4f29d3c4ee1c147f7f31175fcfee80bc" }, "downloads": -1, "filename": "dbkit-0.2.0.tar.gz", "has_sig": false, "md5_digest": "28d4b9fa39b5d192a56f1b06d2649120", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24009, "upload_time": "2012-10-16T07:37:36", "url": "https://files.pythonhosted.org/packages/1b/41/47c1ea7d813b6a40f7220ab4bdb07571fc62224d6d2c6b0f2e67d9fa4b33/dbkit-0.2.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "1535a734568c8c586a3da79b3b089f45", "sha256": "0da0cf2917005a6defff52d35931521ad96e5a8015e3b29e6fb2727a1f1b3512" }, "downloads": -1, "filename": "dbkit-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1535a734568c8c586a3da79b3b089f45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25138, "upload_time": "2013-04-04T19:56:14", "url": "https://files.pythonhosted.org/packages/63/30/46047d155dee6d9e0fb6854ccaaae1b5b1dce5be6d821e0b0c4c2f84ab20/dbkit-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "372e9dd3c47a0693f22b78dee09c00ad", "sha256": "9483a58bb7ce379dac3d0e18410ce0fe366bfc224609c3531b88db26ee2359fc" }, "downloads": -1, "filename": "dbkit-0.2.3.tar.gz", "has_sig": false, "md5_digest": "372e9dd3c47a0693f22b78dee09c00ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27656, "upload_time": "2015-11-26T15:19:22", "url": "https://files.pythonhosted.org/packages/90/1d/c1eba7b92d20a8f52a85d442d94a593ed8d26591ae79cabf14656447561b/dbkit-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "52c29d725e9481daada854e4485c8684", "sha256": "b6ffde35c55b5956996c0fe6847cb01c8aadc8fb7a9a90fdfe1c2f40b8821dda" }, "downloads": -1, "filename": "dbkit-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52c29d725e9481daada854e4485c8684", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 12132, "upload_time": "2015-12-02T03:55:19", "url": "https://files.pythonhosted.org/packages/a4/3e/604b43c94ef2c99acd4067a91bdf19f8003ca4adadbade75da8829600325/dbkit-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65d9a1c040601fedb63e3f78b2091ee3", "sha256": "40310bf877ff54dae9a6c650616bca7ff7505a6ff10334de4f89182c4c3b38c9" }, "downloads": -1, "filename": "dbkit-0.2.4.tar.gz", "has_sig": false, "md5_digest": "65d9a1c040601fedb63e3f78b2091ee3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27968, "upload_time": "2015-12-01T10:50:03", "url": "https://files.pythonhosted.org/packages/43/70/e62edce902e8d12c937a28e8e071ef2a05fa78eba62fa1cd77332faef1f9/dbkit-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "52c29d725e9481daada854e4485c8684", "sha256": "b6ffde35c55b5956996c0fe6847cb01c8aadc8fb7a9a90fdfe1c2f40b8821dda" }, "downloads": -1, "filename": "dbkit-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52c29d725e9481daada854e4485c8684", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 12132, "upload_time": "2015-12-02T03:55:19", "url": "https://files.pythonhosted.org/packages/a4/3e/604b43c94ef2c99acd4067a91bdf19f8003ca4adadbade75da8829600325/dbkit-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65d9a1c040601fedb63e3f78b2091ee3", "sha256": "40310bf877ff54dae9a6c650616bca7ff7505a6ff10334de4f89182c4c3b38c9" }, "downloads": -1, "filename": "dbkit-0.2.4.tar.gz", "has_sig": false, "md5_digest": "65d9a1c040601fedb63e3f78b2091ee3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27968, "upload_time": "2015-12-01T10:50:03", "url": "https://files.pythonhosted.org/packages/43/70/e62edce902e8d12c937a28e8e071ef2a05fa78eba62fa1cd77332faef1f9/dbkit-0.2.4.tar.gz" } ] }