Commonpy

Latest version: v1.12.4

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

Scan your dependencies

Page 5 of 8

1.5.0

This release adds the new function `print_boxed(...)`.

1.4.0

Changes in this version:
* In `net(...)`, in case of a connection error, don't do exponential back-off and retry. Retry only once and then give up, because connection errors often mean the server is not available and long waits are unhelpful to callers.
* Change `net(...)` to not test if a network is available if the given destination address is on the local host. This prevents incorrectly returning `NetworkFailure` when the current host is detached from the network and the failure is actually a `ServiceFailure` (for example, if nothing is listening on the destination port on the local host).
* Add new function `on_localhost(...)`, for testing whether a given network location indicates the local host.

Note: the previous release, 1.3.10, should not have added new functions in a patch release – API changes should result in changing the minor release number, not merely the patch number. The previous release number was a mistake; it should have been 1.4.0, but since it wasn't, this release is 1.4.0.

1.3.10

* Add new functions `download(...)` and `download_file(...)`.

1.3.9

* Don't import packages `dateparser` and `validator_collection` until actually necessary, to reduce application startup times.

1.3.8

* Fix problems on Windows involving the interrupt handler configured by `config_interrupt(...)`. First, the internal function used did not have a signature that was correct for `win32api.SetConsoleCtrlHandler` on Windows. Second, the proper usage is to return a value, not raise an exception.

1.3.7

* Make `relative(...)` from `file_utils` more robust against a problem on Windows, in which Python's `os.path.relpath` generates an error when you try to use it on a network-mapped drive.

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.