Registry / testing / dlint
library0.16.0pypypi✓ verified 84d ago

Dlint is a security-focused linter for Python that enforces best coding practices and helps prevent common vulnerabilities. The latest version is 0.16.0, compatible with Python 3.8.1 to 3.11. It is actively maintained with ongoing releases.

pip install dlint
INSTALL
IMPORT
SIG · DLINT
D
dlint
testingpythonv0.16.0
Install
1.8s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.16.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

linters
from dlint import linters
from dlint import lint_run

Run Dlint on a string of Python code and print out any security issues found.

from dlint import lint_run import os code = "import os; os.system('ls')" result = lint_run(code, plugins=None, ignore=[], allowed_codes=[]) for issue in result: print(issue.linter_code, issue.message)
dlint --version
Debug
Known issues
breakingDlint 0.14.0 removed the 'dlint' CLI command; use flake8 with dlint plugin instead.
fix
Run 'flake8 --select=DUO' instead of 'dlint'.
affects: >=0.14.0
deprecatedThe 'plugins' argument to lint_run is deprecated; use 'allowed_codes' instead.
fix
Specify 'allowed_codes' instead of 'plugins'.
affects: >=0.12.0
gotchaDlint codes (e.g., DUO123) are not dynamically loaded; you must restart your linter after installing dlint.
fix
Restart your editor or re-run flake8 after pip install dlint.
affects: all
gotchaIf using flake8, ensure you have the 'dlint' package installed and use '--select=DUO' to enable Dlint rules.
fix
pip install dlint && flake8 --select=DUO your_code.py
affects: all
Upgrade
Version history
0.16.0latest on PyPI · released Oct 31, 2024
Audit
Dependencies
flake8optionalDlint integrates with flake8; some users may need flake8 for proper use.
Agent activity
31 hits · last 30 days
node
30
OpenAI (training)
1
Resources
dlint — pip install dlint · libregistry