Salted

Latest version: v0.7.2

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

Scan your dependencies

0.7.2

* New features:
* New command line parameter `ignore_urls` (same command in the `BEHAVIOR` section of a configfile). Accepts URLs (in the form of comma separated string), that will not be checked. This is useful as some websites always return an error code if you do not use a browser.

0.7.1

* Bugfix: If called via the CLI without a searchpath, the searchpath now correctly defaults to the current working directory.
* Tests for Python 3.10 now run with Beta 4 instead of Beta 3.

0.7.0

* New features:
* **Salted can be called within a Python script as a library, or as a standalone script via the command line! Both ways support using a configuration file.**
* Check a specific file instead of all supported files within a folder.
* Markdown reports now contain links (instead of bare URLs).
* **BREAKING CHANGES:**
* The function `check_links()` has been renamed to `check` and the parameter `path_to_base_folder` is now named `searchpath`.
* If a configfile is present, it overwrites the default settings. however, if salted is used standalone via the command line interface (CLI), arguments on the CLI overwrite the corresponding values in a config file.
* Salted uses head requests as a fast and light query type to check an URL. Some servers do not like head requests. Therefore, salted tried a full request each time a head requests did return an error. This behavior has been tested using a large collection of URLs. In this collection 607 URls answered a head request with an error code. Only in 5 cases a follow up with a full requests yielded a different result. In the face of this insignificant effect, the functionality for doing a second (full) request has been removed.
* New dependencies:
* Updated versions of multiple dependencies.
* Added the [`pybtext`](https://pypi.org/project/pybtex/) as a dependency to parse BibTeX files. (next release)
* Added sqlalchemy as a dependency.
* Improved code tests:
* Automatic tests now also run with `Python 3.10 beta 3`.
* Although the code is designed to be platform independent, tests now also run in a MacOS and a Windows container to be sure there are no issues.

0.6.1

* Log file access errors (like missing permissions) and list them in reports.
* Add time stamp to reports.
* New dependency: [`compatibility`](https://github.com/RuedigerVoigt/compatibility) (`>=0.8.0`) is added. This warns you if you use `salted` with an untested or unsupported version of Python. As a sister project of `salted` development is coordinated.

0.6.0

* Add basic support for checking links in Markdown and LaTeX (.tex) files:
* Relative ('local') links are not yet supported in any format.
* Markdown : The pandoc version as well as GitHub flavored markdown are supported.
* LaTeX : Salted recognizes `\url{url}` as well as `\href{url}{text}`, but the hyperref option `baseurl` is ignored.
* Add some automatic tests with the pytest framework.

0.5.4

* Salted sets the HTTP header 'User-Agent' to `salted/<version>`. Users can overwrite this by setting a custom user agent.
* Require lxml version >= 4.6.2 (released 2020-11-26) as it fixes a vulnerability *and* works with Python 3.9.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.