pyupio / safety

Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
https://safetycli.com/product/safety-cli
MIT License
1.7k stars 143 forks source link

Used as dependency? #401

Closed pawamoy closed 2 years ago

pawamoy commented 2 years ago

In the changelog of release 2.0, you say:

Now Safety can be used as a dependency in your code

What does this mean exactly?

yeisonvargasf commented 2 years ago

Hi @pawamoy,

In the beginning, PyUp created Safety to be only a CLI tool, but a group of users was using Safety as a dependency in their code; importing Safety in your code wasn't officially supported then.

In Safety >=2.0, we ensured that users could use Safety directly in the code. So now we keep CLI commands and the internal API following SEMVER.

If you have more questions, please create a new issue. I'll close this for now.

pawamoy commented 2 years ago

That answers my question, thank you 🙂