Hasty Briefsbeta

Bilingual

I've almost completely switched from "Python" to "uv run"

a year ago
  • #productivity
  • #virtual-environment
  • #python
  • The author initially disliked using virtual environments (venvs) in Python, preferring system-wide installations.
  • Due to working on multiple projects with different requirements, the author reluctantly started using venvs.
  • Discovered 'uv', a tool for faster venv creation, and was impressed by its speed and features.
  • Transitioned from traditional venv commands to using 'uv sync' with pyproject.toml for dependency management.
  • Found 'uv run' particularly useful for running scripts without manually activating venvs, supporting PEP 723 metadata for inline dependencies.
  • Appreciates the simplicity of keeping dependencies within a single script file using 'uv run'.
  • Noted some early-stage issues with 'uv', especially in VSCode, but considers them minor compared to the tool's benefits.