March 2019
Intermediate to advanced
532 pages
13h 2m
English
The project structure is the way you organize all the files inside a folder in a way that the project best accomplishes the objectives. We are going to start with a .py script (sampleproject.py) that should be with other files in order to complete the information about this script – dependencies, license, how to install it, or how to test it. A common approach for structuring this basic project is as follows:
sampleproject/│├── .gitignore├── sampleproject.py├── LICENSE├── README.rst├── requirements.txt├── setup.py└── tests.py
sampleproject.py—if your project is only a single Python source file, then put it into the directory and name it something related to your project.
The README (.rst or .md extension) ...