Replies: 1 comment 1 reply
-
Okay, yeah this could be valid. Looking at main.py... try:
from ._main import main
except ImportError: # pragma: no cover
def main() -> None: # type: ignore
import sys
print(
"The httpx command line client could not run because the required "
"dependencies were not installed.\nMake sure you've installed "
"everything with: pip install 'httpx[cli]'"
)
sys.exit(1)
main() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was surprised when discover that httpx can't be invoked as cli via
python -m httpx
, only as an registered entrypoint ashttpx
. The first one is everywhere in python world: ruff, mypy, black, pip, pytest, etc.Beta Was this translation helpful? Give feedback.
All reactions