We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用场景:在一个充满屏幕截图的文件夹下,用一行命令将这些截图转为ppt
建议:将命令命名为py-office或者poffice或者po,短命令好打
这样上述使用场景需要的命令大概是:
po img2ppt -i . -o output.pptx # or: python -m python-office img2ppt -i . -o output.pptx
要实现这个功能,需要:
__main__.py
po.exe
建议:对CLI参数的解析可以借助标准库的argparse模块,
argparse
但个人更推荐使用第三方库typer,用装饰器的方式,更直观更便捷地将已有的功能函数转为cli接口
typer
提供cli接口的一个用处是,让几乎完全没有python基础的人也能使用python-office
The text was updated successfully, but these errors were encountered:
非常好的建议,朋友能不能找个已有的功能,比如:tools.passwordtools 来按照你自己的想法,改写一下,提个pr出来,我们看看?
Sorry, something went wrong.
No branches or pull requests
建议:将命令命名为py-office或者poffice或者po,短命令好打
这样上述使用场景需要的命令大概是:
要实现这个功能,需要:
__main__.py
文件__main__.py
为一个exe文件,比如命名为po.exe
建议:对CLI参数的解析可以借助标准库的
argparse
模块,但个人更推荐使用第三方库
typer
,用装饰器的方式,更直观更便捷地将已有的功能函数转为cli接口提供cli接口的一个用处是,让几乎完全没有python基础的人也能使用python-office
The text was updated successfully, but these errors were encountered: