openapi-generators / openapi-generators/openapi-python-client
Calling the generator from cli works with different syntax from documentation
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 2k
- 派生
- 293
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 1
描述
Describe the bug
Calling from cli using the suggested method with python -m does not work.
python -m openapi-python-client --version
PATH_TO_PYTHON\python.exe: No module named openapi-python-client
Using underscores, however, does work (python -m openapi_python_client -version):
python -m openapi_python_client --version
openapi-python-client version: 0.24.3
OpenAPI Spec File
Not applicable
Desktop (please complete the following information):
- OS: Windows 11 (Microsoft Windows NT 10.0.26100.0)
- Python Version: [e.g. 3.12.7]
- openapi-python-client version [e.g. 0.24.3]
Additional context
Running from a powershell instance in VSCode with a conda environment selected as a Python interpreter.
Would it be possible to add a line to the documentation mentioning the call with python -m?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中链接的 README 位置开始,将其中记录的 python -m 调用方式与报告中所示的可正常工作的下划线形式进行比较。在项目的 CLI 上下文中验证该命令,然后更新文档,使受支持的调用方式明确且一致。完成的标准是新手可以成功按照 README 中的命令操作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli, documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 58/100