Starting a Python Project
Note
This a note-to-myself kind of article. Not an expert’s opinion.
Warning
Text for this article created with the help of NotionAI or ChatGPT and edited by me.
Starting a Python project can be challenging, but this blog will guide you through essential steps, including dependency management, documentation, logging, and Dockerizing your application. This guide provides a practical roadmap to getting started with Python projects.
1. Dependency Management
1.a pip
pip install <pypi-package>
pip freeze > requirements.txt
pip freeze | xargs pip uninstall -y
pip install -r requirements.txt
1.b Poetry
1.c PDM
2. Logging
loguru.logger — loguru documentation
3. Documentation
3.a MkDocs
- Automated Code Reference via mkdocstrings