Skip to content

v0.1.4

Choose a tag to compare

@ashimov ashimov released this 19 Apr 15:34
· 11 commits to main since this release

Highlights

  • hawkapi doctor — new one-shot health-check CLI (18 rules across security, observability, performance, correctness, deps). Human + JSON output, --severity filter, exit codes 0/1/2. See docs/guide/doctor.md.
  • Trivial-route fast path — routes without DI / deps / permissions / background / response_model / deprecation / per-route middleware now bypass the general execution path and dispatch straight to the handler. Local benchmark: plaintext 148 k → ~162 k req/s (≥ 8 %), targeted at the #1 plaintext slot vs BlackSheep.
  • uvloop-by-default in hawkapi dev (when installed). --no-uvloop to opt out.
  • mypyc expansionrouting/router.py and di/resolver.py added to compiled hot modules.
  • Using HawkAPI? badge — new docs/assets/hawk-icon.svg + "Using HawkAPI?" README section with copy-paste Markdown/reStructuredText snippets for downstream projects (dynamic PyPI version badge).
  • Build reliabilitymypy / setuptools / msgspec added to build-system.requires; [tool.mypy] with follow_imports = silent scoped type-check to compiled modules; license declaration switched to PEP 621 table form for cp312 pip compatibility; cibuildwheel smoke-test simplified to import check.

Full changelog: https://github.com/ashimov/HawkAPI/blob/v0.1.4/CHANGELOG.md