cookiecutter神器
GitHub 地址:https://github.com/drivendata/cookiecutter-data-science
1. 安装
安装 cookiecutter 非常简单,一个 pip
就可以轻松搞定。
pip install cookiecutter
2. 创建项目
在终端中输入以下命令,根据提示输入你想要的内容即可,完成之后即可得到类似上面脑图的目录结构了😜。
❯ cookiecutter https://github.com/drivendata/cookiecutter-data-science
project_name [project_name]: xxx
repo_name [xxx]:
author_name [Your name (or your organization/company/team)]: yumingmin
description [A short description of the project.]:
Select open_source_license:
1 - MIT
2 - BSD-3-Clause
3 - No license file
Choose from 1, 2, 3 [1]: 3
s3_bucket [[OPTIONAL] your-bucket-for-syncing-data (do not include 's3://')]:
aws_profile [default]:
Select python_interpreter:
1 - python3
2 - python
Choose from 1, 2 [1]: 1