Pyramid-services

Latest version: v2.2

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.2

================

- Depend on ``wired >= 0.2`` to use the new
``wired.ServiceContainer.register_singleton`` api.

2.1

================

- Add a ``NewServiceContainer`` event that is emitted when the service
container is created before any calls to ``request.find_service``.

2.0

================

- Drop support for Python 2.7.

- Replace service lookup with https://wired.readthedocs.io under the hood.

- Fixes service lookup with custom contexts such that the context is passed
through to nested service lookups.

1.1

================

Features
--------

- If the ``iface`` is a class then it must be the exact class that was
registered originally. Subclasses are not identified as implementing
the same interface at this time due to internal limitations.

1.0

================

Features
--------

- Allow the ``iface`` argument to be an arbitrary Python object / class.
See https://github.com/mmerickel/pyramid_services/pull/10

Backward Incompatibilities
--------------------------

- Drop Python 2.6 and Python 3.3 support.

0.4

================

Backward Incompatibilities
--------------------------

- Drop Python 3.2 support.

- Use the original service context interface as the cache key instead
of the current context. This means the service will be properly created
only once for any context satisfying the original interface.

Previously, if you requested the same service from 2 different contexts
in the same request you would receive 2 service objects, instead of
a cached version of the original service, assuming the service was
registered to satisfy both contexts.
See https://github.com/mmerickel/pyramid_services/pull/12

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.