从基本模板创建新的python包

pypkg-generator的Python项目详细描述


Pypkg生成器

Create a simple template of a python package.

PyPI version

使用简单的命令行工具创建python包的基本模板。

安装

OS X和Linux:

来自PYPI

$ pip3 install pypkg-generator

从源头出发

$ git clone https://github.com/dany2691/pypkg-generator.git
$ cd pypkg-generator
$ python3 setup.py install

用法示例

打开终端并键入:

$ pkg-generator --help

它将显示:

Options:
  -n, --name TEXT       The name of the package
  -p, --path TEXT       The path where the package will be created
  --tests / --no-tests  Create test suite directory or not, created by default
  --help                Show this message and exit.

有许多自定义选项,您可以决定是否创建文件。

您必须指定一个名称,否则项目将是名称forgotten\u name

$ pkg-generator --name my-awesome-project

可以显式传递路径,否则,将在当前目录中创建项目。

$ pkg-generator --name my-awesome-project --path /home/user/Documents/

开发设置

此项目使用pipenv进行依赖性解析。这是一种混合 皮普和维图阿列诺夫。按照下面的说明设置开发环境。

$ git clone https://github.com/dany2691/pypkg-generator.git
$ cd pypkg-generator
$ pipenv shell
$ pip3 install -e .

要运行测试套件,请在pypkg generator目录内:

$ pytest -vv test/

丹尼尔·奥马尔·维加拉·佩雷斯–@dan1_netdaniel.omar.vergara@gmail.com

https://github.com/dany2691

贡献

  1. 叉它(https://gitlab.com/hexagondata_projects/pypkg-generator
  2. 创建功能分支(git checkout -b feature/fooBar
  3. 提交更改(git commit -am 'Add some fooBar'
  4. 推到分支(git push origin feature/fooBar
  5. 创建新的拉取请求

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
ByteArrayOutputStream的java解码属性   java S3 SDK在上载时更新单个对象,而不是创建新文件   java hibernate:无法从eclipse连接到DB   java如何在强制转换JComboBox之前检查其类型?   http从Java中的GETPOST请求方法捕获URI、资源名称,如开发人员工具中所示   java在Spring@Bean方法中返回接口的局限性   Java中的Web服务和客户端(使用Eclipse Apache Axis 2自底向上服务)某些代码会引发异常   java spring安全+rest不起作用   java将LinkedList添加到包含LinkedList的LinkedList并更改添加的LinkedList   java是否临时删除对象的属性?   java使用AnimatedGifEncoder类创建的gif图像的部分帧是不透明的   java如何高效地处理maven3时间戳快照?   java向集合对象添加另一项   java如何将动态参数传递给jquery函数   java使用libGdx桌面端口作为Android GLES20的仿真器