{"id":28102,"library":"pysentry-rs","title":"PySentry","description":"PySentry is a security vulnerability auditing tool for Python packages. It scans dependencies from lock files (uv.lock, Pipfile.lock, poetry.lock, pylock.toml) and requirements files, cross-referencing against OSV and PyPA vulnerability databases. Current version 0.4.5, released monthly. Requires Python >=3.9.","status":"active","version":"0.4.5","language":"python","source_language":"en","source_url":"https://github.com/nyudenkov/pysentry","tags":["security","vulnerability","auditing"],"install":[{"cmd":"pip install pysentry-rs","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Sentry SDK for error reporting (optional, via configuration)","package":"sentry-sdk","optional":true}],"imports":[{"note":"Package is installed as pysentry-rs, but import uses pysentry","wrong":"from pysentry_rs import PySentry","symbol":"PySentry","correct":"from pysentry import PySentry"}],"quickstart":{"code":"from pysentry import PySentry\n\n# Initialize PySentry (requires no auth for local scans)\nsentry = PySentry()\n\n# Scan current directory dependencies\nvulns = sentry.scan('.')\nfor v in vulns:\n    print(f\"{v.id}: {v.package} - {v.severity}\")","lang":"python","description":"Basic usage: initialize PySentry and scan dependencies for vulnerabilities."},"warnings":[{"fix":"Review .pysentry.toml for [notifications] section; add enabled = true/ false as needed.","message":"v0.4.0 introduced remote notifications system; config file format changed. Old .pysentry.toml may not be compatible.","severity":"breaking","affected_versions":"<0.4.0 -> >=0.4.0"},{"fix":"Use 'from pysentry import PySentry' or 'import pysentry'.","message":"Import as 'pysentry', not 'pysentry_rs'. The PyPI name is pysentry-rs but the module is pysentry.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate settings to .pysentry.toml if you need consistent priority.","message":"v0.3.x configuration in pyproject.toml under [tool.pysentry] is superseded by .pysentry.toml with higher priority.","severity":"deprecated","affected_versions":">=0.3.13"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"pip install pysentry-rs, then import pysentry","cause":"Package name pysentry-rs installs module as 'pysentry', not 'pysentry_rs'.","error":"ModuleNotFoundError: No module named 'pysentry_rs'"},{"fix":"Check documentation for correct API; in v0.4.x use 'from pysentry import scan' or 'from pysentry import PySentry' depending on version.","cause":"Wrong import path; PySentry is not a class but a module-level scanner function in older versions.","error":"ImportError: cannot import name 'PySentry' from 'pysentry'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}