JasperSui/fastapi-injectable
68.7
Adequate · 9 November 2026
2k
lines of production code
Python
primary language
10
measurements over time
What this system is
Fixes
Fixes cross-loop hangs and adds isolated dependency scopes
This release fixes a critical issue where dependency resources resolved on one event loop were incorrectly served to another, causing silent hangs or "attached to different loop" errors (GitHub \#186). The dependency cache and exit-stack manager are now partitioned by event loop, ensuring resources stay bound to the loop that created them. Additionally, the library introduces \InjectableScope\ and \injectable\_scope()\ to allow users to create isolated dependency lifecycles for specific tasks or contexts, and adds a pytest plugin to automatically reset global state between tests for better isolation.
_src/fastapi\injectable · high confidence
Test coverage
Added integration tests for Celery, Dramatiq, and Temporal interoperability; Expanded test coverage for dependency lifecycle, concurrency, and plugin behavior.
Dependencies
Migrate build tooling from Poetry to uv and expand Python version support
The project has switched its dependency management from Poetry to uv, replacing the poetry.lock with uv.lock and updating the CONTRIBUTING.md and noxfile.py to use uv commands (e.g., uv sync, uv run). This change is accompanied by an expansion of supported Python versions to include 3.13 and 3.14 (including free-threaded builds), reflected in .python-version, .readthedocs.yml, and the noxfile.py test matrix. Additionally, the pre-commit configuration has been simplified by removing several local hooks and updating the default Python version to 3.14, while a new codecov.yml enforces 100% coverage targets for both project and patch changes.
(repo-wide) · high confidence
Migrate dependency management from Poetry to uv and update build backend
The project has switched its dependency management tool from Poetry to uv, replacing the \poetry.lock\ file with a \pyproject.toml\ configured for \hatchling\ as the build backend. This migration updates the project version to 1.6.1, adds support for Python 3.13 and 3.14, and introduces a pytest plugin entry point for test isolation. Development dependencies are now managed via uv's dependency groups, and the configuration includes updated tool settings for ruff, mypy (with a new plugin), and coverage.
(dependencies) · high confidence
Housekeeping
Added example output documentation to worker script
The worker example script now includes a docstring containing sample output logs, illustrating the expected processing flow and cleanup behavior for messages handled by the CountryWorker, Capital, and Mayor components.
example · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 66 → 69 (+2.9)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 82 → 82 (+0.1)
- Architecture 100 → 100 (+0.0)
- Maturity 52 → 61 (+8.2)
- Readiness 69 → 69 (+0.0)
- Security 79 → 73 (-6.2)
- Performance 100 → 100 (+0.0)
Resolved (4)
- Duplicate functionality between class methods and module-level utility functions. AsyncExitStackManager exposes cleanup_stack and cleanup_all_stacks, while the util module exposes cleanup_exit_stack_of_func and cleanup_all_exit_stacks with identical signatures and likely identical implementation logic.
- High CVE: [GHSA redacted] (uv.lock)
- Inconsistent naming for cache retrieval. DependencyCache uses get to retrieve the entire cache dictionary, while InjectableScope uses get_cache for the same intent. This creates confusion about whether get is a standard dictionary access or a specific cache retrieval method.
- Redundant naming convention for synchronous vs asynchronous operations. The library provides get_injected_obj and async_get_injected_obj. In modern Python async libraries, it is standard convention to have a single get_injected_obj that handles both sync and async callables internally (or uses await if the result is a coroutine), rather than forcing the user to choose between two similarly named functions based on the input type.
New (3)
- High CVE: [GHSA redacted] (uv.lock)
- High: security finding (details withheld)
- Medium CVE: [GHSA redacted] (uv.lock)
Changes since last survey
- 5 commits — 4 feature/other, 1 fixes
By area
- (root) — 2 commits
- .github/workflows — 2 commits
- src/fastapi_injectable — 1 commit
Notable commits
- fix: fix: inject Depends parameters under from future import annotations (#269)
- change: build(deps): bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 (#272)
- change: build(deps): bump release-drafter/release-drafter from 7.7.0 to 7.10.0 (#273)
- change: bump: from 1.6.1 to 1.6.2 (#271)
- change: chore: drop Python 3.13t from the CI matrix (#270)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
JasperSui/fastapi-injectable was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit ba74dd25e365985c0e6cb497d24ba82e74e09880 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.4+preprod-464a0040a931.