Api-session

Latest version: v1.4.2

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

Scan your dependencies

Page 1 of 3

1.4.2

* Add `escape_path` helper
* Add Python 3.13 support
* Declare `__all__` not to expose imports
* Relax `requests` dependency

1.4.1

* Fix the missing `response` (and `request`) attributes on the `HTTPError`s re-raised in `raise_for_response`

1.4.0

* Change the default `raise_for_response` implementation to include the response body in the error message if the status
is 4xx. This criterion can be changed by overriding the new method `include_body_in_exception`. One can also override
`raise_for_response` to completely customize the exceptions raised by the library.

1.3.6

* `post_json_api`: fix docstring
* Add `put_json_api`, `patch_json_api`, `delete_json_api`

1.3.5

* Add `max_retries` to the constructor

1.3.4

* Add `post_json_api`
* Add `timeout` to the constructor to specify a default timeout for all requests
* Add official support for Python 3.12

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.