How do you structure a medium-sized Python project?
Model answer
A package folder with clear modules, a tests folder, pyproject.toml for metadata and dependencies, a virtual environment, a README, and linting and formatting tools such as ruff. Keep configuration in environment variables, and entry points in a main module or CLI.
Learn this topic
Modules, pip and Virtual Environments in Python in the course Python for Beginners: Learn to Code with Real Projects.
Sign in to add your own answer.