{"score":90,"grade":"A","scannedAt":"2026-12-05T23:09:36.972Z","scanner":"grades-0.2","signals":{"ecosystem":"pypi","name":"orm-lens","version":"1.18.8","license":"MIT","repository":"https://github.com/FROWNINGdev/orm-lens","firstPublished":"2026-10-31T09:30:11.235132Z","lastPublished":"2026-12-01T20:32:00.868451Z","versions":12,"files":104,"bytes":1580639,"hosts":["d2lang.com","dbdiagram.io","dbml.dbdiagram.io","docs.djangoproject.com","frowningdev.github.io","marketplace.visualstudio.com"]},"capabilities":{"network":false,"files":true,"shell":false,"env":true,"dynamicCode":true},"findings":[{"rule":"dynamic-code","severity":"medium","title":"Builds and runs code at runtime","file":"orm_lens/sqlalchemy_nplusone.py","line":157,"snippet":"def eval(self, node: ast.AST | None, env: dict[str, _Src]) -> _Src | None:"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"orm_lens/cli.py","line":212,"snippet":"with open(args.output, \"w\", encoding=\"utf-8\") as fh:"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"orm_lens/workspace.py","line":6,"snippet":"``os.environ[\"ORM_LENS_ROOT\"]`` or ``os.getcwd()``. Tool signatures"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"orm_lens/workspace.py","line":112,"snippet":"value = os.environ.get(f\"ORM_LENS_{name}\", \"\").strip()"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"orm_lens/workspace.py","line":115,"snippet":"return os.environ.get(f\"DJANGO_ORM_LENS_{name}\", \"\").strip()"}],"vulns":[],"installScripts":[],"server":{"name":"io.github.FROWNINGdev/orm-lens","title":"ORM Lens","description":"Django and SQLAlchemy static analysis: models, relations, migrations, Alembic, N+1.","repository":"https://github.com/FROWNINGdev/orm-lens","version":"1.18.8"}}