zope.session


Namezope.session JSON
Version 5.1 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/zope.session
SummaryClient identification and sessions for Zope
upload_time2023-08-28 09:46:39
maintainer
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords zope3 session
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==============
 zope.session
==============

.. image:: https://img.shields.io/pypi/v/zope.session.svg
        :target: https://pypi.python.org/pypi/zope.session/
        :alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/zope.session.svg
        :target: https://pypi.org/project/zope.session/
        :alt: Supported Python versions

.. image:: https://github.com/zopefoundation/zope.session/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/zope.session/actions/workflows/tests.yml

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.session/badge.svg?branch=master
        :target: https://coveralls.io/github/zopefoundation/zope.session?branch=master

.. image:: https://readthedocs.org/projects/zopesession/badge/?version=latest
        :target: https://zopesession.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

This package provides interfaces for client identification and session
support and their implementations for the request objects of
`zope.publisher <https://zopepublisher.readthedocs.io/>`_.

Documentation is hosted at https://zopesession.readthedocs.io/


=========
 CHANGES
=========

5.1 (2023-08-28)
================

- Declare ``zope.traversing`` as install dependency.


5.0 (2023-03-02)
================

- Drop support for Python 2.7, 3.5, 3.6.

- Add support for Python 3.11.


4.5 (2022-08-30)
================

- Add support for Python 3.5, 3.9, 3.10.


4.4.0 (2020-10-16)
==================

- Fix inconsistent resolution order with zope.interface v5.

- Add support for Python 3.8.

- Drop support for Python 3.4 and 3.5.


4.3.0 (2018-10-19)
==================

- Add support for Python 3.7.

- Host documentation at https://zopesession.readthedocs.io


4.2.0 (2017-09-22)
==================

- Add support for Python 3.5 and 3.6.

- Drop support for Python 2.6 and 3.3

- Reach 100% code coverage and maintain it via tox.ini and Travis CI.

4.1.0 (2015-06-02)
==================

- Add support for PyPy and PyPy3.


4.0.0 (2014-12-24)
==================

- Add support for Python 3.4.

- Add support for testing on Travis.


4.0.0a2 (2013-08-27)
====================

- Fix test that fails on any timezone east of GMT


4.0.0a1 (2013-02-21)
====================

- Add support for Python 3.3

- Replace deprecated ``zope.component.adapts`` usage with equivalent
  ``zope.component.adapter`` decorator.

- Replace deprecated ``zope.interface.implements`` usage with equivalent
  ``zope.interface.implementer`` decorator.

- Drop support for Python 2.4 and 2.5.


3.9.5 (2011-08-11)
==================

- LP #824355:  enable support for HttpOnly cookies.

- Fix a bug in ``zope.session.session.Session`` that would trigger an
  infinite loop if either iteration or a containment test were
  attempted on an instance.


3.9.4 (2011-03-07)
==================

- Add an explicit `provides` to the IClientId adapter declaration in
  adapter.zcml.

- Add option to disable implicit sweeps in
  PersistentSessionDataContainer.


3.9.3 (2010-09-25)
==================

- Add test extra to declare test dependency on ``zope.testing``.

- Use Python's ``doctest`` module instead of depreacted
  ``zope.testing.doctest``.


3.9.2 (2009-11-23)
==================

- Fix Python 2.4 hmac compatibility issue by only using hashlib in
  Python versions 2.5 and above.

- Use the CookieClientIdManager's secret as the hmac key instead of the
  message when constructing and verifying client ids.

- Make it possible to construct CookieClientIdManager passing cookie namespace
  and/or secret as constructor's arguments.

- Use zope.schema.fieldproperty.FieldProperty for "namespace" attribute of
  CookieClientIdManager, just like for other attributes in its interface.
  Also, make ICookieClientIdManager's "namespace" field an ASCIILine, so
  it accepts only non-unicode strings for cookie names.


3.9.1 (2009-04-20)
==================

- Restore compatibility with Python 2.4.


3.9.0 (2009-03-19)
==================

- Don't raise deprecation warnings on Python 2.6.

- Drop dependency on ``zope.annotation``. Instead, we make classes implement
  `IAttributeAnnotatable` in ZCML configuration, only if ``zope.annotation``
  is available. If your code relies on annotatable `CookieClientIdManager`
  and `PersistentSessionDataContainer` and you don't include the zcml classes
  configuration of this package, you'll need to use `classImplements` function
  from ``zope.interface`` to make those classes implement `IAttributeAnnotatable`
  again.

- Drop dependency on zope.app.http, use standard date formatting function
  from the ``email.utils`` module.

- Zope 3 application bootstrapping code for session utilities was moved into
  zope.app.appsetup package, thus drop dependency on zope.app.appsetup in this
  package.

- Drop testing dependencies, as we don't need anything behind zope.testing and
  previous dependencies was simply migrated from zope.app.session before.

- Remove zpkg files and zcml slugs.

- Update package's description a bit.


3.8.1 (2009-02-23)
==================

- Add an ability to set cookie effective domain for CookieClientIdManager.
  This is useful for simple cases when you have your application set up on
  one domain and you want your identification cookie be active for subdomains.

- Python 2.6 compatibility change. Encode strings before calling hmac.new()
  as the function no longer accepts the unicode() type.


3.8.0 (2008-12-31)
==================

- Add missing test dependency on ``zope.site`` and
  ``zope.app.publication``.


3.7.1 (2008-12-30)
==================

- Specify i18n_domain for titles in apidoc.zcml

- ZODB 3.9 no longer contains
  ZODB.utils.ConflictResolvingMappingStorage, fixed tests, so they
  work both with ZODB 3.8 and 3.9.


3.7.0 (2008-10-03)
==================

New features:

- Added a 'postOnly' option on CookieClientIdManagers to only allow setting
  the client id cookie on POST requests.  This is to further reduce risk from
  broken caches handing the same client id out to multiple users. (Of
  course, it doesn't help if caches are broken enough to cache POSTs.)


3.6.0 (2008-08-12)
==================

New features:

- Added a 'secure' option on CookieClientIdManagers to cause the secure
  set-cookie option to be used, which tells the browser not to send the
  cookie over http.

  This provides enhanced security for ssl-only applications.

- Only set the client-id cookie if it isn't already set and try to
  prevent the header from being cached.  This is to minimize risk from
  broken caches handing the same client id out to multiple users.


3.5.2 (2008-06-12)
==================

- Remove ConflictErrors caused on SessionData caused by setting
  ``lastAccessTime``.


3.5.1 (2008-04-30)
==================

- Split up the ZCML to make it possible to re-use more reasonably.


3.5.0 (2008-03-11)
==================

- Change the default session "resolution" to a sane value and document/test it.


3.4.1 (2007-09-25)
==================

- Fixed some meta data and switch to tgz release.


3.4.0 (2007-09-25)
==================

- Initial release

- Moved parts from ``zope.app.session`` to this packages

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/zope.session",
    "name": "zope.session",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "zope3 session",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/f3/cc/7f2106402ac1ef1c2640df96e7fddcfb11e7121a1bf83b9ef057b4d4be20/zope.session-5.1.tar.gz",
    "platform": null,
    "description": "==============\n zope.session\n==============\n\n.. image:: https://img.shields.io/pypi/v/zope.session.svg\n        :target: https://pypi.python.org/pypi/zope.session/\n        :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/zope.session.svg\n        :target: https://pypi.org/project/zope.session/\n        :alt: Supported Python versions\n\n.. image:: https://github.com/zopefoundation/zope.session/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/zopefoundation/zope.session/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/zope.session/badge.svg?branch=master\n        :target: https://coveralls.io/github/zopefoundation/zope.session?branch=master\n\n.. image:: https://readthedocs.org/projects/zopesession/badge/?version=latest\n        :target: https://zopesession.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\nThis package provides interfaces for client identification and session\nsupport and their implementations for the request objects of\n`zope.publisher <https://zopepublisher.readthedocs.io/>`_.\n\nDocumentation is hosted at https://zopesession.readthedocs.io/\n\n\n=========\n CHANGES\n=========\n\n5.1 (2023-08-28)\n================\n\n- Declare ``zope.traversing`` as install dependency.\n\n\n5.0 (2023-03-02)\n================\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n- Add support for Python 3.11.\n\n\n4.5 (2022-08-30)\n================\n\n- Add support for Python 3.5, 3.9, 3.10.\n\n\n4.4.0 (2020-10-16)\n==================\n\n- Fix inconsistent resolution order with zope.interface v5.\n\n- Add support for Python 3.8.\n\n- Drop support for Python 3.4 and 3.5.\n\n\n4.3.0 (2018-10-19)\n==================\n\n- Add support for Python 3.7.\n\n- Host documentation at https://zopesession.readthedocs.io\n\n\n4.2.0 (2017-09-22)\n==================\n\n- Add support for Python 3.5 and 3.6.\n\n- Drop support for Python 2.6 and 3.3\n\n- Reach 100% code coverage and maintain it via tox.ini and Travis CI.\n\n4.1.0 (2015-06-02)\n==================\n\n- Add support for PyPy and PyPy3.\n\n\n4.0.0 (2014-12-24)\n==================\n\n- Add support for Python 3.4.\n\n- Add support for testing on Travis.\n\n\n4.0.0a2 (2013-08-27)\n====================\n\n- Fix test that fails on any timezone east of GMT\n\n\n4.0.0a1 (2013-02-21)\n====================\n\n- Add support for Python 3.3\n\n- Replace deprecated ``zope.component.adapts`` usage with equivalent\n  ``zope.component.adapter`` decorator.\n\n- Replace deprecated ``zope.interface.implements`` usage with equivalent\n  ``zope.interface.implementer`` decorator.\n\n- Drop support for Python 2.4 and 2.5.\n\n\n3.9.5 (2011-08-11)\n==================\n\n- LP #824355:  enable support for HttpOnly cookies.\n\n- Fix a bug in ``zope.session.session.Session`` that would trigger an\n  infinite loop if either iteration or a containment test were\n  attempted on an instance.\n\n\n3.9.4 (2011-03-07)\n==================\n\n- Add an explicit `provides` to the IClientId adapter declaration in\n  adapter.zcml.\n\n- Add option to disable implicit sweeps in\n  PersistentSessionDataContainer.\n\n\n3.9.3 (2010-09-25)\n==================\n\n- Add test extra to declare test dependency on ``zope.testing``.\n\n- Use Python's ``doctest`` module instead of depreacted\n  ``zope.testing.doctest``.\n\n\n3.9.2 (2009-11-23)\n==================\n\n- Fix Python 2.4 hmac compatibility issue by only using hashlib in\n  Python versions 2.5 and above.\n\n- Use the CookieClientIdManager's secret as the hmac key instead of the\n  message when constructing and verifying client ids.\n\n- Make it possible to construct CookieClientIdManager passing cookie namespace\n  and/or secret as constructor's arguments.\n\n- Use zope.schema.fieldproperty.FieldProperty for \"namespace\" attribute of\n  CookieClientIdManager, just like for other attributes in its interface.\n  Also, make ICookieClientIdManager's \"namespace\" field an ASCIILine, so\n  it accepts only non-unicode strings for cookie names.\n\n\n3.9.1 (2009-04-20)\n==================\n\n- Restore compatibility with Python 2.4.\n\n\n3.9.0 (2009-03-19)\n==================\n\n- Don't raise deprecation warnings on Python 2.6.\n\n- Drop dependency on ``zope.annotation``. Instead, we make classes implement\n  `IAttributeAnnotatable` in ZCML configuration, only if ``zope.annotation``\n  is available. If your code relies on annotatable `CookieClientIdManager`\n  and `PersistentSessionDataContainer` and you don't include the zcml classes\n  configuration of this package, you'll need to use `classImplements` function\n  from ``zope.interface`` to make those classes implement `IAttributeAnnotatable`\n  again.\n\n- Drop dependency on zope.app.http, use standard date formatting function\n  from the ``email.utils`` module.\n\n- Zope 3 application bootstrapping code for session utilities was moved into\n  zope.app.appsetup package, thus drop dependency on zope.app.appsetup in this\n  package.\n\n- Drop testing dependencies, as we don't need anything behind zope.testing and\n  previous dependencies was simply migrated from zope.app.session before.\n\n- Remove zpkg files and zcml slugs.\n\n- Update package's description a bit.\n\n\n3.8.1 (2009-02-23)\n==================\n\n- Add an ability to set cookie effective domain for CookieClientIdManager.\n  This is useful for simple cases when you have your application set up on\n  one domain and you want your identification cookie be active for subdomains.\n\n- Python 2.6 compatibility change. Encode strings before calling hmac.new()\n  as the function no longer accepts the unicode() type.\n\n\n3.8.0 (2008-12-31)\n==================\n\n- Add missing test dependency on ``zope.site`` and\n  ``zope.app.publication``.\n\n\n3.7.1 (2008-12-30)\n==================\n\n- Specify i18n_domain for titles in apidoc.zcml\n\n- ZODB 3.9 no longer contains\n  ZODB.utils.ConflictResolvingMappingStorage, fixed tests, so they\n  work both with ZODB 3.8 and 3.9.\n\n\n3.7.0 (2008-10-03)\n==================\n\nNew features:\n\n- Added a 'postOnly' option on CookieClientIdManagers to only allow setting\n  the client id cookie on POST requests.  This is to further reduce risk from\n  broken caches handing the same client id out to multiple users. (Of\n  course, it doesn't help if caches are broken enough to cache POSTs.)\n\n\n3.6.0 (2008-08-12)\n==================\n\nNew features:\n\n- Added a 'secure' option on CookieClientIdManagers to cause the secure\n  set-cookie option to be used, which tells the browser not to send the\n  cookie over http.\n\n  This provides enhanced security for ssl-only applications.\n\n- Only set the client-id cookie if it isn't already set and try to\n  prevent the header from being cached.  This is to minimize risk from\n  broken caches handing the same client id out to multiple users.\n\n\n3.5.2 (2008-06-12)\n==================\n\n- Remove ConflictErrors caused on SessionData caused by setting\n  ``lastAccessTime``.\n\n\n3.5.1 (2008-04-30)\n==================\n\n- Split up the ZCML to make it possible to re-use more reasonably.\n\n\n3.5.0 (2008-03-11)\n==================\n\n- Change the default session \"resolution\" to a sane value and document/test it.\n\n\n3.4.1 (2007-09-25)\n==================\n\n- Fixed some meta data and switch to tgz release.\n\n\n3.4.0 (2007-09-25)\n==================\n\n- Initial release\n\n- Moved parts from ``zope.app.session`` to this packages\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Client identification and sessions for Zope",
    "version": "5.1",
    "project_urls": {
        "Homepage": "https://github.com/zopefoundation/zope.session"
    },
    "split_keywords": [
        "zope3",
        "session"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a50539eb467ebac1c2901533163b4ee5c7edc44fca1aa55556af1da531f208e",
                "md5": "e287cfe1b7738873643358f8d993bfce",
                "sha256": "b544ad123db15ebe548c482aa24321fbf50a35324203c96c7f16b5e443be2414"
            },
            "downloads": -1,
            "filename": "zope.session-5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e287cfe1b7738873643358f8d993bfce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 24830,
            "upload_time": "2023-08-28T09:46:36",
            "upload_time_iso_8601": "2023-08-28T09:46:36.744258Z",
            "url": "https://files.pythonhosted.org/packages/2a/50/539eb467ebac1c2901533163b4ee5c7edc44fca1aa55556af1da531f208e/zope.session-5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f3cc7f2106402ac1ef1c2640df96e7fddcfb11e7121a1bf83b9ef057b4d4be20",
                "md5": "c6ffd6a6dd1e0ad9a23f23d626e124ee",
                "sha256": "e468e7324c42c3dd06bef6535a3dfd0730ace8c26ee1c63a4bf24d5c1d136cd2"
            },
            "downloads": -1,
            "filename": "zope.session-5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c6ffd6a6dd1e0ad9a23f23d626e124ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 33114,
            "upload_time": "2023-08-28T09:46:39",
            "upload_time_iso_8601": "2023-08-28T09:46:39.007906Z",
            "url": "https://files.pythonhosted.org/packages/f3/cc/7f2106402ac1ef1c2640df96e7fddcfb11e7121a1bf83b9ef057b4d4be20/zope.session-5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-28 09:46:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zopefoundation",
    "github_project": "zope.session",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "zope.session"
}
        
Elapsed time: 0.14482s