
Python development on Google Cloud just got a lot faster and easier as I am excited to announce that uv now comes pre-installed in Cloud Shell!
Try it for yourself! Head to shell.cloud.google.com and run
uv --version
β
Uv has been taking the Python community by storm (and for good reason, it is seriously awesome). It is extremely fast and powerful, leaving more time for developers to focus on coding and less time on managing dependencies, Python versions, tools, etc.
Highlights of uv:
- π A single tool to replace
pip
,pip-tools
,pipx
,poetry
,pyenv
,twine
,virtualenv
, and more. - β‘οΈ 10β100x faster than pip.
- ποΈ Provides comprehensive project management, with a universal lockfile.
- π Installs and manages Python versions.
- π οΈ Runs and installs tools published as Python packages.
- π© Includes a pip-compatible interface for a performance boost with a familiar CLI.
- πΎ Disk-space efficient, with a global cache for dependency deduplication.
- π₯οΈ Supports macOS, Linux, and Windows.
The folks over at Astral are doing even more fabulous work when it comes to next-gen Python tooling (Ruff, ty). A big kudos to them! π
If this is your first time hearing of uv
, here is a quick cheat sheet of some of the powerful commands you can start using in Cloud Shellβ¦
I personally no longer use pip
or manage a venv
manually, I completely use uv
to streamline my workflow and make life easier.
Source Credit: https://medium.com/google-cloud/lightning-fast-python-on-google-cloud-a8ee4438a977?source=rss—-e52cf94d98af—4