repoze.tm2 (Transaction Manager)
================================
.. image:: https://travis-ci.org/repoze/repoze.tm2.png?branch=master
:target: https://travis-ci.org/repoze/repoze.tm2
.. image:: https://readthedocs.org/projects/repozetm2/badge/?version=latest
:target: http://repozetm2.readthedocs.org/en/latest/
:alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/repoze.tm2.svg
:target: https://pypi.python.org/pypi/repoze.tm2
.. image:: https://img.shields.io/pypi/pyversions/repoze.tm2.svg
:target: https://pypi.python.org/pypi/repoze.tm2
Middleware which uses the ZODB transaction manager to wrap a call to
its pipeline children inside a transaction. This is a fork of the
``repoze.tm`` package which depends only on the ``transaction``
package rather than the entirety of ZODB (for users who don't rely on ZODB).
Installation
------------
Install using setuptools, e.g. (within a virtualenv)::
$ easy_install repoze.tm2
or using pip::
$ pip install repoze.tm2
Usage
-----
For details on using the various components, please see the
documentation in ``docs/index.rst``. A rendered version of that documentation
is also available online:
- http://repozetm2.readthedocs.org/en/latest/
Reporting Bugs
--------------
Please report bugs in this package to
https://github.com/repoze/repoze.tm2/issues
Obtaining Source Code
---------------------
Download development or tagged versions of the software by visiting:
https://github.com/repoze/repoze.tm2
Changelog
=========
2.2.0 (2023-01-16)
------------------
- Add support for Python 3.7, 3.8, 3.9, 3.10, and 3.11.
- Drop suppport for Python 2.7, 3.4, 3.5 and 3.6.
- Add Github Actions workflow running unit tests / coverage for PRs.
2.1 (2016-06-03)
----------------
- Add support for Python 3.4, 3.5 and PyPy3.
- Drop support for Python 2.6 and 3.2.
- Add support for testing under Travis.
2.0 (2013-06-26)
----------------
- Avoid swallowing the original exception while aborting the transaction
in middleware. See PR #3.
2.0b1 (2013-04-05)
------------------
- Middleware is now a generator, to deal appropriately with application
iterators which are themselves not lists.
- Convert use of deprecated failIf/failUnless to assertFalse/assertTrue.
- Add support for testing under supported Pythons using Tox.
- Add explicit support for Python 3.2 ad 3.3.
- Drop support for Python 2.4, 2.5.
1.0 (2012-03-24)
----------------
- Run OOTB under Python 2.4 / 2.5 (pin 'transaction' dependency to
a supported version when running under 2.4 / 2.5).
1.0b2 (2011-07-18)
------------------
- A new header ``X-Tm`` is now honored by the ``default_commit_veto`` commit
veto hook. If this header exists in the headerlist, its value must be a
string. If its value is ``commit``, the transaction will be committed
regardless of the status code or the value of ``X-Tm-Abort``. If the value
of the ``X-Tm`` header is ``abort`` (or any other string value except
``commit``), the transaction will be aborted regardless of the status code
or the value of ``X-Tm-Abort``.
- Use of the ``X-Tm-Abort`` header is now deprecated. Instead use the
``X-Tm`` header with a value of ``abort`` instead.
- Add API docs section.
1.0b1 (2011-01-19)
------------------
- Added ``repoze.tm.default_commit_veto`` commit veto hook. This commit veto
hook aborts for 4XX and 5XX response codes, or if there's a header named
``X-Tm-Abort`` in the headerlist and allows a commit otherwise.
- Documented commit veto hook.
1.0a5 (2009-09-07)
------------------
- Don't commit after aborting if the transaction was doomed or if the
commit veto aborted.
- Don't use "real" transaction module in tests.
- 100% test coverage.
1.0a4 (2009-01-06)
------------------
- RESTify CHANGES, move docs in README.txt into Sphinx.
- Remove ``setup.cfg`` (all dependencies available via PyPI).
- Synchronization point with ``repoze.tm`` (0.9).
1.0a3 (2008-08-03)
------------------
Allow ``commit_veto`` hook to be specified within Paste config, ala::
[filter:tm]
use = repoze.tm:make_tm
commit_veto = some.package:myfunction
``myfunction`` should take three args: environ, status, headers and
should return True if the txn should be aborted, False if it should be
committed.
Initial PyPI release.
1.0a2 (2008-07-15)
------------------
- Provide "commit_veto" hook point (contributed by Alberto Valverde).
- Point easy_install at http://dist.repoze.org/tm2/dev/simple via setup.cfg.
1.0a1 (2008-01-09)
------------------
- Fork point: we've created repoze.tm2, which is repoze.tm that has a
dependency only on the 'transaction' package instead of all of ZODB.
- Better documentation for non-Zope usage in README.txt.
0.8 (2007-10-11)
----------------
- Relaxed requirement for ZODB 3.7.2, since we might need to use the
package with other verions. Note that the tests which depend on
transaction having "doom" semantics don't work with 3.7.2, anyway.
0.7 (2007-09-25)
----------------
- Depend on PyPI release of ZODB 3.7.2. Upgrade to this by doing
bin/easy_install -U 'ZODB3 >= 3.7.1, < 3.8.0a' if necessary.
0.6 (2007-09-21)
----------------
- after_end.register and after_end.unregister must now be passed a
transaction object rather than a WSGI environment to avoid the
possibility that the WSGI environment used by a child participating
in transaction management won't be the same one used by the
repoze.tm package.
- repoze.tm now inserts a key into the WSGI environment
(``repoze.tm.active``) if it's active in the WSGI pipeline. An API
function, repoze.tm:isActive can be called with a single argument,
the WSGI environment, to check if the middleware is active.
0.5 (2007-09-18)
----------------
- Depend on rerolled ZODB 3.7.1 instead of zopelib.
- Add license and copyright, change trove classifiers.
0.4 (2007-09-17)
----------------
- Depend on zopelib rather than ZODB 3.8.0b3 distribution, because the
ZODB distribution pulls in various packages (zope.interface and ZEO
most notably) that are incompatible with stock Zope 2.10.4 apps and
older sandboxes. We'll need to revisit this.
0.3 (2007-09-14)
----------------
- Provide limited compatibility for older transaction package versions
which don't support the 'transaction.isDoomed' API.
0.2 (2007-09-13)
----------------
- Provide after_end API for registering callbacks at transaction end.
0.1 (2007-09-10)
----------------
- Initial Release
Raw data
{
"_id": null,
"home_page": "http://www.repoze.org",
"name": "repoze.tm2",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "web application server wsgi zope repoze",
"author": "Agendaless Consulting",
"author_email": "repoze-dev@lists.repoze.org",
"download_url": "https://files.pythonhosted.org/packages/ac/f6/397d1c261f0486c22253fec65ef0e15186fd90656e310e0e3261851a34f7/repoze.tm2-2.2.0.tar.gz",
"platform": null,
"description": "repoze.tm2 (Transaction Manager)\n================================\n\n.. image:: https://travis-ci.org/repoze/repoze.tm2.png?branch=master\n :target: https://travis-ci.org/repoze/repoze.tm2\n\n.. image:: https://readthedocs.org/projects/repozetm2/badge/?version=latest\n :target: http://repozetm2.readthedocs.org/en/latest/ \n :alt: Documentation Status\n\n.. image:: https://img.shields.io/pypi/v/repoze.tm2.svg\n :target: https://pypi.python.org/pypi/repoze.tm2\n\n.. image:: https://img.shields.io/pypi/pyversions/repoze.tm2.svg\n :target: https://pypi.python.org/pypi/repoze.tm2\n\nMiddleware which uses the ZODB transaction manager to wrap a call to\nits pipeline children inside a transaction. This is a fork of the\n``repoze.tm`` package which depends only on the ``transaction``\npackage rather than the entirety of ZODB (for users who don't rely on ZODB).\n\nInstallation\n------------\n\nInstall using setuptools, e.g. (within a virtualenv)::\n\n $ easy_install repoze.tm2\n\nor using pip::\n\n $ pip install repoze.tm2\n\n\nUsage\n-----\n\nFor details on using the various components, please see the\ndocumentation in ``docs/index.rst``. A rendered version of that documentation\nis also available online:\n\n - http://repozetm2.readthedocs.org/en/latest/\n\n\nReporting Bugs \n--------------\n\nPlease report bugs in this package to\n\n https://github.com/repoze/repoze.tm2/issues\n\n\nObtaining Source Code\n---------------------\n\nDownload development or tagged versions of the software by visiting:\n\n https://github.com/repoze/repoze.tm2\n\n\n\nChangelog\n=========\n\n2.2.0 (2023-01-16)\n------------------\n\n- Add support for Python 3.7, 3.8, 3.9, 3.10, and 3.11.\n\n- Drop suppport for Python 2.7, 3.4, 3.5 and 3.6.\n\n- Add Github Actions workflow running unit tests / coverage for PRs.\n\n2.1 (2016-06-03)\n----------------\n\n- Add support for Python 3.4, 3.5 and PyPy3.\n\n- Drop support for Python 2.6 and 3.2.\n\n- Add support for testing under Travis.\n\n2.0 (2013-06-26)\n----------------\n\n- Avoid swallowing the original exception while aborting the transaction\n in middleware. See PR #3.\n\n2.0b1 (2013-04-05)\n------------------\n\n- Middleware is now a generator, to deal appropriately with application\n iterators which are themselves not lists.\n\n- Convert use of deprecated failIf/failUnless to assertFalse/assertTrue.\n\n- Add support for testing under supported Pythons using Tox.\n\n- Add explicit support for Python 3.2 ad 3.3.\n\n- Drop support for Python 2.4, 2.5.\n\n1.0 (2012-03-24)\n----------------\n\n- Run OOTB under Python 2.4 / 2.5 (pin 'transaction' dependency to\n a supported version when running under 2.4 / 2.5).\n\n1.0b2 (2011-07-18)\n------------------\n\n- A new header ``X-Tm`` is now honored by the ``default_commit_veto`` commit\n veto hook. If this header exists in the headerlist, its value must be a\n string. If its value is ``commit``, the transaction will be committed\n regardless of the status code or the value of ``X-Tm-Abort``. If the value\n of the ``X-Tm`` header is ``abort`` (or any other string value except\n ``commit``), the transaction will be aborted regardless of the status code\n or the value of ``X-Tm-Abort``.\n\n- Use of the ``X-Tm-Abort`` header is now deprecated. Instead use the\n ``X-Tm`` header with a value of ``abort`` instead.\n\n- Add API docs section.\n\n1.0b1 (2011-01-19)\n------------------\n\n- Added ``repoze.tm.default_commit_veto`` commit veto hook. This commit veto\n hook aborts for 4XX and 5XX response codes, or if there's a header named\n ``X-Tm-Abort`` in the headerlist and allows a commit otherwise.\n\n- Documented commit veto hook.\n\n1.0a5 (2009-09-07)\n------------------\n\n- Don't commit after aborting if the transaction was doomed or if the\n commit veto aborted.\n\n- Don't use \"real\" transaction module in tests.\n\n- 100% test coverage.\n\n1.0a4 (2009-01-06)\n------------------\n\n- RESTify CHANGES, move docs in README.txt into Sphinx.\n\n- Remove ``setup.cfg`` (all dependencies available via PyPI).\n\n- Synchronization point with ``repoze.tm`` (0.9).\n\n1.0a3 (2008-08-03)\n------------------\n\nAllow ``commit_veto`` hook to be specified within Paste config, ala::\n\n [filter:tm]\n use = repoze.tm:make_tm\n commit_veto = some.package:myfunction\n\n``myfunction`` should take three args: environ, status, headers and\nshould return True if the txn should be aborted, False if it should be\ncommitted.\n\nInitial PyPI release.\n\n1.0a2 (2008-07-15)\n------------------\n\n- Provide \"commit_veto\" hook point (contributed by Alberto Valverde).\n\n- Point easy_install at http://dist.repoze.org/tm2/dev/simple via setup.cfg.\n\n1.0a1 (2008-01-09)\n------------------\n\n- Fork point: we've created repoze.tm2, which is repoze.tm that has a\n dependency only on the 'transaction' package instead of all of ZODB.\n\n- Better documentation for non-Zope usage in README.txt.\n\n0.8 (2007-10-11)\n----------------\n\n- Relaxed requirement for ZODB 3.7.2, since we might need to use the\n package with other verions. Note that the tests which depend on\n transaction having \"doom\" semantics don't work with 3.7.2, anyway.\n\n0.7 (2007-09-25)\n----------------\n\n- Depend on PyPI release of ZODB 3.7.2. Upgrade to this by doing\n bin/easy_install -U 'ZODB3 >= 3.7.1, < 3.8.0a' if necessary.\n\n0.6 (2007-09-21)\n----------------\n\n - after_end.register and after_end.unregister must now be passed a\n transaction object rather than a WSGI environment to avoid the\n possibility that the WSGI environment used by a child participating\n in transaction management won't be the same one used by the\n repoze.tm package.\n\n - repoze.tm now inserts a key into the WSGI environment\n (``repoze.tm.active``) if it's active in the WSGI pipeline. An API\n function, repoze.tm:isActive can be called with a single argument,\n the WSGI environment, to check if the middleware is active.\n\n0.5 (2007-09-18)\n----------------\n\n- Depend on rerolled ZODB 3.7.1 instead of zopelib.\n\n- Add license and copyright, change trove classifiers.\n\n0.4 (2007-09-17)\n----------------\n\n- Depend on zopelib rather than ZODB 3.8.0b3 distribution, because the\n ZODB distribution pulls in various packages (zope.interface and ZEO\n most notably) that are incompatible with stock Zope 2.10.4 apps and\n older sandboxes. We'll need to revisit this.\n\n0.3 (2007-09-14)\n----------------\n\n- Provide limited compatibility for older transaction package versions\n which don't support the 'transaction.isDoomed' API.\n\n0.2 (2007-09-13)\n----------------\n\n- Provide after_end API for registering callbacks at transaction end.\n\n0.1 (2007-09-10)\n----------------\n\n- Initial Release\n\n\n",
"bugtrack_url": null,
"license": "BSD-derived (http://www.repoze.org/LICENSE.txt)",
"summary": "Per-request transactions via WSGI middleware",
"version": "2.2.0",
"split_keywords": [
"web",
"application",
"server",
"wsgi",
"zope",
"repoze"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2459d51e844f1dd51a8c1172429998ea5bbf53d5b57fd9c84f78783b228f3c0b",
"md5": "b7f5638093050b74a47c5e10585424b2",
"sha256": "56379ab00cb1812f6c2e21613cb8a03a18610f28671330c876e3331dacbe1771"
},
"downloads": -1,
"filename": "repoze.tm2-2.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b7f5638093050b74a47c5e10585424b2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9357,
"upload_time": "2023-01-16T23:55:37",
"upload_time_iso_8601": "2023-01-16T23:55:37.933859Z",
"url": "https://files.pythonhosted.org/packages/24/59/d51e844f1dd51a8c1172429998ea5bbf53d5b57fd9c84f78783b228f3c0b/repoze.tm2-2.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "acf6397d1c261f0486c22253fec65ef0e15186fd90656e310e0e3261851a34f7",
"md5": "99cd16eba17e9eafd8eab2da3dd3f4a4",
"sha256": "800f072d39d892f69cdfd29e88499320993450ec4cdcd545067a628d69c36886"
},
"downloads": -1,
"filename": "repoze.tm2-2.2.0.tar.gz",
"has_sig": false,
"md5_digest": "99cd16eba17e9eafd8eab2da3dd3f4a4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27606,
"upload_time": "2023-01-16T23:55:39",
"upload_time_iso_8601": "2023-01-16T23:55:39.353041Z",
"url": "https://files.pythonhosted.org/packages/ac/f6/397d1c261f0486c22253fec65ef0e15186fd90656e310e0e3261851a34f7/repoze.tm2-2.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-16 23:55:39",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "repoze.tm2"
}