简体   繁体   English

将命令行实用程序上传到PyPI

[英]Uploading command-line utilities to PyPI

I made a program that should be run from the shell with only one command (like $ program_name , that's it). 我制作了一个程序,只需一个命令即可从外壳程序运行它(例如$ program_name ,就是这样)。 I'm confused if I should upload this program to the PyPI list because when I browse through the list I have only encountered packages/modules that are designed to be imported into other python programs. 我是否应该将此程序上传到PyPI列表感到困惑,因为当我浏览列表时,我只遇到了旨在导入其他python程序的包/模块。

The program is also specifically designed for python users, so only programmers who work with python would use it. 该程序还专门为python用户设计,因此只有使用python的程序员才能使用它。 It would be nice if I could upload it there mainly because it is easier to package and distribute and only python users would use it anyway. 如果我可以将其上传到那里,那会很好,主要是因为它更易于打包和分发,并且只有python用户才能使用它。

Of course you can upload it. 当然可以上传。

There are plenty of command-line utilities listed on PyPI, including, for example, pip . PyPI上列出了许多命令行实用程序,例如pip

In fact, there are over 2700 packages marked as running in the Console environment . 实际上,有2700多个软件包被标记为在控制台环境中运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM