Pdpyras

Latest version: v5.4.0

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

Scan your dependencies

Page 4 of 6

4.1.2

* Address issue 37 and add other enhancements to ``iter_all``:
* Stop iteration in ``iter_all`` if the iteration limit (10000) is encountered, versus erroring out (because exceeding it will elicit a 400 response)
* Add the ability to set an initial offset via ``params`` versus always starting from ``offset=0`` in ``iter_all``
* Capitalize "constants"

4.1.1

* Define class variable ``retry`` initially as ``{}`` instead of ``None`` (`32 <https://github.com/PagerDuty/pdpyras/issues/32>`_)

4.1

* Added new idempotent resource creator function, :attr:`APISession.persist`
* Added the ability to use resource dictionaries (that have a ``self`` attribute) in place of URLs.

4.0

* Added support for using OAuth 2 access tokens to authenticate (`23 <https://github.com/PagerDuty/pdpyras/issues/23>`_)
* Added a property that indicates the access level/scope of a given API credential (`22 <https://github.com/PagerDuty/pdpyras/issues/22>`_)

3.2.1

* Fixed bug in :attr:`APISession.trunc_token`; property name typo causes ``AttributeError``

3.2

* The page size (``limit``) parameter can now be set on a per-call basis in any of the ``*_all`` methods (i.e. :attr:`PDSession.iter_all`) by passing the ``page_size`` keyword argument. If the argument is not present, the default page size will be used.
* The ``X-Request-Id`` header in responses is now captured in log messages to make it easier to identify API calls when communicating with PagerDuty Support
* Extended API call metadata is also now logged.
* The cooldown time between rate limit responses can optionally be randomized by setting :attr:`PDSession.stagger_cooldown` to a positive number.

Page 4 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.