What is a console script entry point?
BeginnerConceptEnvironments, dependencies & packaging
Answer
An entry in pyproject.toml that tells the installer to generate an executable wrapper on PATH:
[project.scripts]
cloudaudit = "cloudaudit.cli:main"
After pip install ., cloudaudit --help works from anywhere, using the venv's interpreter. It is cleaner than python path/to/script.py and is what makes ENTRYPOINT ["cloudaudit"] possible in a Dockerfile.
More on Environments, dependencies & packaging
What is a virtual environment and why do we always use one?BeginnerWhat does `error: externally-managed-environment` mean?Beginner`requirements.txt` vs `pyproject.toml`: what goes where?IntermediateWhy is `pip freeze > requirements.txt` not a great lock strategy?IntermediateWhat do version specifiers like `~=`, `==`, `>=,<` mean?BeginnerWhat are `pipx` and `uv`, and when do you use them?Intermediate