{ "info": { "author": "Wichert Akkerman", "author_email": "wichert@wiggy.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Pyramid", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Database", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://travis-ci.org/wichert/pyramid_sqlalchemy.svg?branch=master\n :target: https://travis-ci.org/wichert/pyramid_sqlalchemy\n\n`pyramid_sqlalchemy` provides some basic glue to facilitate using\n`SQLAlchemy `_ with `Pyramid\n`_.\n\nSQLAlchemy relies on global state for a few things: \n\n* A ``MetaData`` instance which tracks all known SQL tables.\n* A base class for all models using the ORM.\n* A session factory.\n\nEvery application using SQLAlchemy must provides its own instance of these.\nThis makes it hard create add-on packages that also use SQLAlchemy, since they\neither need to have their own SQLAlchemy state, which makes it hard to\nintegrate them into your application, or they need to jump through multiple\ncomplex hoops to allow them share state with your application.\n\npyramid_sqlalchemy helps by providing a canonical location for the global\nSQLAlchemy state. In addition it provides a convenient way to configure\nSQLAlchemy in a Pyramid application.\n\n::\n\n from pyramid.config import Configurator\n from pyramid_sqlalchemy import BaseObject\n\n class MyModel(BaseObject):\n __tablename__ = 'my_model'\n ...\n\n def main():\n config = Configurator()\n # Configure SQLAlchemy using settings from the .ini file\n config.include('pyramid_sqlalchemy')\n ...\n return config.make_wsgi_app()\n\nChangelog\n=========\n\n1.6 - January 4, 2016\n---------------------\n\n- Update ``transaction`` pytest fixture to not mock out ``transation.get()``\n completely, but only the ``commit()`` transaction method. This fixes problems\n with code trying to write on the current transaction.\n\n\n1.5 - December 30, 2015\n-----------------------\n\n- Fix a compatibility error with the DatabaseTestCase class which could break\n functional test setup.\n\n- Code reorganisation: move tests outside the package; there is no point in\n installing them.\n\n\n1.4 - November 25, 2015\n-----------------------\n\n- Revert naming convention change. This change broke all existing data models\n which did not supply a constraint name everywhere. This is especially bad\n for types which implicitly create unnamed constraints, such as booleans and\n enums on dialects that do not have native support.\n\n\n1.3 - November 23, 2015\n-----------------------\n\n- Configure a default naming convention, as `recommended by alembic\n `_).\n `Pull request 3 `_\n from Marcin Lulek.\n\n- Fix a broken import in pyramid_sqlalchemy's own test when running on Python 3.\n\n- Allow overriding the database used for testing with the pytest ``--sql-url`` \n option when using the ``DatabaseTestCase`` test class. For non-pytest users\n support the ``DB_URI`` environment variable as well.\n\n\n1.2.2 - September 11, 2014\n--------------------------\n\n- Add dependency on mock for Python <3.3. This fixes import problems who try to\n import pyramid_sqlalchemy.testing in production code.\n\n\n1.2.1 - September 1, 2014\n-------------------------\n\n- Move pyramid to a test-only dependency. This makes it simpler to use\n pyramid_sqlalchemy in non-pyramid contexts.\n\n\n1.2 - August 30, 2014\n---------------------\n\n- Use `unittest.mock` when available. This removes the `mock` dependency on\n Python 3.\n\n- Tests no longer need to mock out pyramid_sqlalchemy.includeme; this is now\n handled by ``DatabaseTestCase`` and the py.test fixtures.\n\n- Automatically make py.test fixtures available externally. This removes the\n need to copy & paste them over from the documentation.\n\n- Fix error on pytest fixture example.\n\n- Setup `Travis `_ to\n automatically run tests on CPython 2.6, CPython 2.7, CPython 3.3, CPython 3.4\n and PyPy.\n\n\n1.1 - July 14, 2014\n-------------------\n\n- Add missing schema to the Pyramid-URL in the package description. This broke\n ReST rendering on the PyPI page.\n\n- Add a new ``enable_sql_two_phase_commit()`` configuration directive to enable\n two-phase commit.\n\n- Enable foreign key constraint checking for SQLite in DatabaseTestCase.\n\n- Use SQLAlchemy events instead of ZopeTransactionExtension to handle\n integration of zope.sqlalchemy and SQLAlchemy.\n\n\n1.0 - July 13, 2014\n-------------------\n\n- First release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pyramid-sqlalchemy.readthedocs.org", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "pyramid_sqlalchemy", "package_url": "https://pypi.org/project/pyramid_sqlalchemy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_sqlalchemy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://pyramid-sqlalchemy.readthedocs.org" }, "release_url": "https://pypi.org/project/pyramid_sqlalchemy/1.6/", "requires_dist": null, "requires_python": null, "summary": "SQLAlchemy integration for pyramid", "version": "1.6" }, "last_serial": 1887500, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "87277cbf8c157c15298cb44fa91742be", "sha256": "5dc7f683db5dffef392f4c91a07a31401260863e0e73c0d438318f9e829e066e" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.0.tar.gz", "has_sig": false, "md5_digest": "87277cbf8c157c15298cb44fa91742be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12515, "upload_time": "2014-07-13T15:52:37", "url": "https://files.pythonhosted.org/packages/77/a5/b93048e6b07c6481934c1b5a5d7be0ee2d16dbf88a435b6622fc0e282bd3/pyramid_sqlalchemy-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "e29dd0c47d0aff8c2d65c0df70f5edf6", "sha256": "256fe7cabc0e10c0f24a2ec165af673a219875dbc7b2ab67718753715355b21d" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.1.tar.gz", "has_sig": false, "md5_digest": "e29dd0c47d0aff8c2d65c0df70f5edf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14852, "upload_time": "2014-07-14T16:11:04", "url": "https://files.pythonhosted.org/packages/a6/05/73d27fcc18baa37ce7c02346ad3363b7aba271ad2a13153987882c8b02df/pyramid_sqlalchemy-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "e91411599144cb2d2d29680b1d84d510", "sha256": "a9b3ee29fbc80d7d5f6fe52bae368254c512bfc84eefeee788103d403a441355" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.2.tar.gz", "has_sig": false, "md5_digest": "e91411599144cb2d2d29680b1d84d510", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15415, "upload_time": "2014-08-30T15:30:34", "url": "https://files.pythonhosted.org/packages/72/61/e0e3d3de5c94668b567fcdd66afc663e0aa8116796bfe9b308eac4953e51/pyramid_sqlalchemy-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "2eefebb470dfb1bc640a970aaf565276", "sha256": "6f6f197fc82048606a28f8e9c9d87ab2ef2802c7c1aed15ca13cf4185a353bd1" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.2.1.tar.gz", "has_sig": false, "md5_digest": "2eefebb470dfb1bc640a970aaf565276", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15538, "upload_time": "2014-09-01T12:06:47", "url": "https://files.pythonhosted.org/packages/bd/83/2146b1eac19d460afb1c0a9c79c7ef70af897ac4cacdd293cfd3a3acaae2/pyramid_sqlalchemy-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "23556ef5c7ff306374127792bba0a66b", "sha256": "13ed8f07b3c4997ef815765c52680a3962aed0e4f8f6b0a997e2c162c691fa4f" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.2.2.tar.gz", "has_sig": false, "md5_digest": "23556ef5c7ff306374127792bba0a66b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15682, "upload_time": "2014-09-11T11:29:55", "url": "https://files.pythonhosted.org/packages/24/04/3229c7d473a7e227298d612c3ea35dcfe2d51b6fab224bfb4d74b3aeb568/pyramid_sqlalchemy-1.2.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "b2f1d2a7708267e317996b7ab5ab979d", "sha256": "2b710d2ade12fa17492b11e5a5434d497521384062ccc7cac40404847751cb38" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b2f1d2a7708267e317996b7ab5ab979d", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 11687, "upload_time": "2015-11-23T09:23:17", "url": "https://files.pythonhosted.org/packages/fd/f0/39b57256e610ac04467499d4eae846329be327bc580d6ca75dac2e824270/pyramid_sqlalchemy-1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4dffdb4bb487cfdd2d689a7c055daf10", "sha256": "f65b2faea24b876c43be27e79f179813ddb38abb7b323a487f934a60cbf1531f" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.3.tar.gz", "has_sig": false, "md5_digest": "4dffdb4bb487cfdd2d689a7c055daf10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17543, "upload_time": "2015-11-23T09:23:09", "url": "https://files.pythonhosted.org/packages/53/11/e81e9f065fe5b3b95413cb71d0fa1ad3120f9766cc7420982ea47122811d/pyramid_sqlalchemy-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "8cf3ca10a5633549fb79fc01386e67c0", "sha256": "216b932ca404c3933e1d0898a1e833240b8dcb0514fc09da4ad99bff723b356d" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8cf3ca10a5633549fb79fc01386e67c0", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 11796, "upload_time": "2015-11-25T14:38:18", "url": "https://files.pythonhosted.org/packages/d6/be/c4f3b63d0acd6c7591a41d4f36b67653870cd521f0e26afba54a307b5bbf/pyramid_sqlalchemy-1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a44a5c672ee304a6cf382f820c2a242b", "sha256": "9eeb29e409aedd08d95623d2080ac79e2d824c8b4274e397a0d9710d62ebbf8f" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.4.tar.gz", "has_sig": false, "md5_digest": "a44a5c672ee304a6cf382f820c2a242b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17807, "upload_time": "2015-11-25T14:38:10", "url": "https://files.pythonhosted.org/packages/f9/d8/9a29c4d3bb2cc8221c4664486e24abebcf7331556aaf6cc8646b5ea31ac7/pyramid_sqlalchemy-1.4.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "55812c07b5427768b3c6f9645b2405c8", "sha256": "6dc21c5e01dec753f08304228f259492b7e0ee081c46f719f2aaaae06bbcefe6" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "55812c07b5427768b3c6f9645b2405c8", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 12004, "upload_time": "2015-12-30T12:38:22", "url": "https://files.pythonhosted.org/packages/b6/b9/56bc6dedb518c2c3d133c8840abcc00f782e5af094e495fa1baea103a28e/pyramid_sqlalchemy-1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d19fc8f2a66e03267e4f812c7e106ac3", "sha256": "bbdaa01dc59d81a51eb6952c82f6a314b20687737e595478ff15457792678456" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.5.tar.gz", "has_sig": false, "md5_digest": "d19fc8f2a66e03267e4f812c7e106ac3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16207, "upload_time": "2015-12-30T12:38:16", "url": "https://files.pythonhosted.org/packages/1c/6e/0f5bcc04189f47886204b18a646da3bdef80c28e5fde2950f227ac468221/pyramid_sqlalchemy-1.5.tar.gz" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "dd2189b3dec2cee892975a1d67fa120b", "sha256": "42176e3df63538ec80aaa9acf0abee759c67c52e7d63aa8863f3f1a1108de959" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dd2189b3dec2cee892975a1d67fa120b", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 12218, "upload_time": "2016-01-04T14:36:47", "url": "https://files.pythonhosted.org/packages/f0/1a/17a9788b9d119dffeb5c3841c3a037d3af689da08259937f1f7aaa9f68d0/pyramid_sqlalchemy-1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bda594ec10c4f85ba9a4191360eae7f3", "sha256": "377a18834e15ff59ba89c882be7d40bdc92ab5ad39a881ff2eba111b84f2418b" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.6.tar.gz", "has_sig": false, "md5_digest": "bda594ec10c4f85ba9a4191360eae7f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16389, "upload_time": "2016-01-04T14:36:36", "url": "https://files.pythonhosted.org/packages/f8/ef/1a7350be383d58efb806f1192ff09a8b2764082ef69719a20d2424d213b4/pyramid_sqlalchemy-1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd2189b3dec2cee892975a1d67fa120b", "sha256": "42176e3df63538ec80aaa9acf0abee759c67c52e7d63aa8863f3f1a1108de959" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dd2189b3dec2cee892975a1d67fa120b", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 12218, "upload_time": "2016-01-04T14:36:47", "url": "https://files.pythonhosted.org/packages/f0/1a/17a9788b9d119dffeb5c3841c3a037d3af689da08259937f1f7aaa9f68d0/pyramid_sqlalchemy-1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bda594ec10c4f85ba9a4191360eae7f3", "sha256": "377a18834e15ff59ba89c882be7d40bdc92ab5ad39a881ff2eba111b84f2418b" }, "downloads": -1, "filename": "pyramid_sqlalchemy-1.6.tar.gz", "has_sig": false, "md5_digest": "bda594ec10c4f85ba9a4191360eae7f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16389, "upload_time": "2016-01-04T14:36:36", "url": "https://files.pythonhosted.org/packages/f8/ef/1a7350be383d58efb806f1192ff09a8b2764082ef69719a20d2424d213b4/pyramid_sqlalchemy-1.6.tar.gz" } ] }