The Beginning!!!
project_root 整个代码项目的根目录
│ README.md 对于整个项目的介绍
│ .gitignore 对于某些文件和目录让Git忽略管理
│ requirements.txt 声明整个项目依赖的Python库
│ definitions.py 对于整个项目级别的一些常量进行定义,方便其他地方引用。默认有一个ROOT_DIR的常量是项目根目录。
│ 在代码中千万不要使用绝对路径,要使用基于ROOT_DIR的相对路径。
└───data 存放项目依赖的数据的目录
│
└───doc 存放项目相关的文档
│
└───output 存放项目的输出,里面内容一般不进行Git托管,都是保留在本地的
│
└───script 这是目录底下存放一些执行脚本,一般是非常特定的。要和可复用的项目代码区别开来。
│
└───project 这是整个项目的核心代码的目录,一般就用项目名。
│ │ 如我们的开源库sekg,这个目录就会由重命名为sekg,里面是各个模块。
│ │ __init__.py
│ └───module1 独立的功能模块,里面是可复用的代码
│ │ │ func1.py 某个具体的功能
│ │ │ func2.py 某个具体的功能
│ │ │ ...
│ └───module2 独立的功能模块,里面是可复用的代码
│ │ func3.py 某个具体的功能
│ │ func4.py 某个具体的功能
│ │ ...
│
└───test 测试包,里面是与核心模块一一对应的测试文件,目录结构保持一致
│ │ __init__.py
│ └───module1
│ │ │ test_func1.py 某个具体的功能的测试
│ │ │ test_func2.py 某个具体的功能的测试
│ │ │ ...
│ └───module2
│ │ test_func3.py 某个具体的功能的测试
│ │ test_func4.py 某个具体的功能的测试
│ │ ...
来源Github
One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
Give examples
A step by step series of examples that tell you how to get a development env running
Say what the step will be
Give the example
And repeat
until finished
End with an example of getting some data out of the system or using it for a little demo
Explain how to run the automated tests for this system
Explain what these tests test and why
Give an example
Explain what these tests test and why
Give an example
Add additional notes about how to deploy this on a live system
- Dropwizard - The web framework used
- Maven - Dependency Management
- ROME - Used to generate RSS Feeds
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Billie Thompson - Initial work - PurpleBooth
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc