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