Skip to content

Commit

Permalink
uv integration (#13431)
Browse files Browse the repository at this point in the history
* uv integration

* update date

* Update content/blog/python-uv-toolchain/index.md

Co-authored-by: Eric Rudder <[email protected]>

* Uv blog suggestions (#13454)

* uv blog suggestions

* Update index.md

---------

Co-authored-by: Julien <[email protected]>

---------

Co-authored-by: Eric Rudder <[email protected]>
Co-authored-by: Meagan <[email protected]>
  • Loading branch information
3 people authored Nov 27, 2024
1 parent bea1fd9 commit d3e1374
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions content/blog/python-uv-toolchain/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: "Pulumi + uv: Fast Python Package and Project Management"
date: 2024-11-27T12:43:45+01:00
draft: false
meta_desc: Learn how to use uv, an ultra-fast Python package manager, now fully integrated with Pulumi
meta_image: meta.png
authors:
- adam-gordon-bell
- julien-poissonnier
tags:
- python
- infrastructure-as-code
social:
twitter: "Pulumi + uv: Announcing fast Python package management with uv, now fully integrated with Pulumi. See Adam and Julien discuss the new functionality in this video, or read our blog: www.pulumi.com//blog/python-uv-toolchain"
linkedin: "We're thrilled to announce built-in support for uv in Pulumi!
uv is an ultra-fast Python package manager written in Rust that can install dependencies up to 100x faster than traditional tools. Now fully integrated with Pulumi, it provides one of the fastest ways to manage your Python dependencies and virtual environments.
Learn more in our blog post: www.pulumi.com//blog/python-uv-toolchain"

---
Continuing our work to bring [the best of modern Python to Infrastructure as Code](/blog/pulumi-loves-python/), we are excited to announce built-in support for [uv](https://docs.astral.sh/uv/) in Pulumi. uv is an extremely fast Python package manager that can install dependencies up to 100x faster than traditional tools, providing one of the fastest ways to manage your Python dependencies and virtual environments.

<!--more-->

## Why uv?

Listen in on this discussion between [Adam Gordon Bell](/blog/author/adam-gordon-bell/) and [Julien Poissonnier](/blog/author/julien-poissonnier/) as they discuss Pulumi + uv and why uv is so fast!
{{< youtube "hxi7ZL9H0IU?rel=0" >}}

uv brings several key advantages to your Python development workflow:

- **Blazing Fast Performance**: Written in Rust, uv can install packages 10-100x faster than pip
- **Reliable Dependency Resolution**: Advanced resolution algorithm ensures consistent environments
- **Drop-in Replacement**: Works seamlessly with existing requirements.txt and pyproject.toml files
- **Built-in Virtual Environment Management**: Simplified environment handling out of the box

## Using uv in Pulumi

To use uv to manage your Python virtual environment and dependencies, set the `toolchain` option to `uv` in your `Pulumi.yaml` file:

```yaml
name: uv-goes-brrrr
runtime:
name: python
options:
toolchain: uv
virtualenv: .venv
```
If you have uv installed, you can run `pulumi new python` and select uv as the toolchain to use for installing dependencies and running the program.

You can find more information on how to use uv in Pulumi in our [Python documentation](/docs/iac/languages-sdks/python/#uv).
Binary file added content/blog/python-uv-toolchain/meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d3e1374

Please sign in to comment.