March 2020
Intermediate to advanced
301 pages
7h 10m
English
Around Chapter 4, we moved from just having everything in one folder to a more structured tree, and we thought it might be of interest to outline the moving parts.
The code for this appendix is in the appendix_project_structure branch on GitHub:
git clone https://github.com/cosmicpython/code.git cd code git checkout appendix_project_structure
The basic folder structure looks like this:
Project tree
. ├── Dockerfile├── Makefile├── README.md ├── docker-compose.yml├── license.txt ├── mypy.ini ├── requirements.txt ├── src│ ├── allocation │ │ ├── __init__.py │ │ ├── adapters │ │ │ ├── __init__.py │ │ │ ├── orm.py │ │ │ └── repository.py │ │ ├── config.py │ │ ├── domain │ │ │ ├── __init__.py │ │ │ └── model.py │ │ ├── entrypoints │ │ │ ├── __init__.py │ │ │ └── flask_app.py │ │ └── service_layer │ │ ├── __init__.py │ │ └── services.py │ └── setup.py└── tests ...