Userprovided

Latest version: v1.0.0

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

Scan your dependencies

Page 1 of 4

1.0.0

* Dropped support for Python 3.6 and 3.7 due to EOL of these versions.
* Added support and tests for Python 3.11 and the recently released 3.12.
* Breaking Changes:
* Methods in `userprovided.hash` have been moved to `userprovided.hashing` with version 0.9.1. Now the mitigation has been removed and calling the old method will fail instead of raising a deprecation warning.
* No functional changes.

0.9.4

* Test now run with Python 3.10.

0.9.3

* Marked as compatible with Python 3.10 as tests with release candidate 1 run flawlessly on Linux, MacOS, and Windows.

0.9.2

* Introduced custom exceptions to allow precise handling:
* `userprovided.err.QueryKeyConflict` is thrown by `url.normalize_query_part` if there is a duplicate key in the query part with a different value. As some sites (like `nytimes.com`) use multiple keys with the same name, the method got an extra parameter `do_not_change_query_part` (default: False) to keep the query part unchanged if so needed.
* `userprovided.err.DeprecatedHashAlgorithm` is thrown, if the user tries to use the `MD5` or `SHA1` hashing algorithm.
* `userprovided.err.ContradictoryParameters` is thrown if a user calls a method with settings that contradict each other.

0.9.1

* New method `parameters.keys_neither_none_nor_empty` takes a dictionary and returns `False` if the value of any key is None, an empty string, or an empty iterable (of the kind dict/list/set/str/tuple).
* Reached 100% test coverage.
* **Methods in `userprovided.hash` have been moved to `userprovided.hashing`** in order to avoid redefining the builtin `hash` object. *The old paths will work until version 1.0.0 of userprovided!* However, they will yield a deprecation warning from now on.

0.9.0

* The new function `date.date_de_long_to_iso` takes a long format German date (like '3. Oktober 1990') and returns a standardized date string (i.e. YYYY-MM-DD).
* The functions `url.normalize_url()` and `url.normalize_query_part()` now have the optional parameter `drop_key` which accepts a list of keys, that are then removed from the query part of the URL. This allows you (for example) to remove session-ids or trackers.
* The function `hash.calculate_file_hash()` now has the optional parameter `expected_hash` which allows you to compare the calculated file hash to the hash value you expect in order to detect changes or tampering.
* **Breaking Changes**:
* The function `port.port_in_range()` is replaced by `parameters.is_port()`.
* The function `cloud.is_aws_s3_bucket_name()` is replaced by `parameters.is_aws_s3_bucket_name()`.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.