feat: add proper optional-dependencies for each modules (#75)

This commit is contained in:
d3vyce
2026-02-19 11:08:18 +01:00
committed by GitHub
parent 48567310bc
commit 32ed36e102
8 changed files with 346 additions and 29 deletions

View File

@@ -0,0 +1,9 @@
"""Optional dependency helpers."""
def require_extra(package: str, extra: str) -> None:
"""Raise *ImportError* with an actionable install instruction."""
raise ImportError(
f"'{package}' is required to use this module. "
f"Install it with: pip install fastapi-toolsets[{extra}]"
)