Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/app.livelearn.nl/public_html/app/wp-includes/functions.php on line 6121

Notice: Function add_theme_support( 'html5' ) was called incorrectly. You need to pass an array of types. Please see Debugging in WordPress for more information. (This message was added in version 3.6.1.) in /var/www/app.livelearn.nl/public_html/app/wp-includes/functions.php on line 6121
Livelearn
search Inloggen search Registreren

Jouw profiel

Registreren Inloggen

Notice: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /var/www/app.livelearn.nl/public_html/app/wp-includes/functions.php on line 6121

Warning: Undefined array key 0 in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/templates/check_visibility.php on line 302

Warning: Attempt to read property "occurence" on null in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/templates/check_visibility.php on line 302

Warning: Undefined array key 0 in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/templates/check_visibility.php on line 303

Warning: Attempt to read property "id" on null in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/templates/check_visibility.php on line 303

Notice: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /var/www/app.livelearn.nl/public_html/app/wp-includes/functions.php on line 6121

Warning: Trying to access array offset on value of type null in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 36

Notice: Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /var/www/app.livelearn.nl/public_html/app/wp-includes/functions.php on line 6121

Warning: foreach() argument must be of type array|object, bool given in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 98

Artikel

18
April

Mouse is

April 18, 2024

2 views

uv – Python’s Fastest Package Installer and Resolver

There’s a new Python package installer out now and it’s called uv. The uv package installer and resolver is made by Astral. Uv is written in Rust instead of Python and is super fast! Astral is best known for Python’s fastest formatter, Ruff. The uv package is meant to be a drop-in replacement for pip and pip-tools. According to Astral, “uv is 8-10x faster than pip and pip-tools without caching, and 80-115x faster when running with a warm cache (e.g., recreating a virtual environment or updating a dependency)”.

Astral is also taking over the development of Rye, an experimental Python packaging tool from Armin Ronacher. From the sounds of Astral’s announcement, Rye and uv will become one tool as the two projects have a shared vision for Python packaging.

Installing uv

You can install uv using Curl:

curl -LsSf https://astral.sh/uv/install.sh | sh

Or you can use pip:

pip install uv

Now that you have uv installed, you can start installing packages!

Using uv

Let’s try running uv in your terminal:

c:code> uv
Usage: uv.exe [OPTIONS] <COMMAND>

Commands:
pip Resolve and install Python packages
venv Create a virtual environment
cache Manage the cache
help Print this message or the help of the given subcommand(s)

Options:
-q, --quiet Do not print any output
-v, --verbose Use verbose output
--color <COLOR> Control colors in output [default: auto] [possible values: auto, always, never]
-n, --no-cache Avoid reading from or writing to the cache [env: UV_NO_CACHE=]
--cache-dir <CACHE_DIR> Path to the cache directory [env: UV_CACHE_DIR=]
-h, --help Print help (see more with '--help')
-V, --version Print version

You’ll need to create and activate a Python virtual environment to install packages with uv.

Here’s an example:

C:code> uv venv test
Using Python 3.11.5 interpreter at C:UserswheifrdAppDataLocalProgramsPythonPython311python.exe
Creating virtualenv at: test
Activate with: testScriptsactivate

C:code> .testScriptsactivate
(test) C:books>

Now you’re ready to install a Python package. You can use numpy for a test run:

(test) C:books> uv pip install numpy
Resolved 1 package in 615ms
Downloaded 1 package in 2.81s
Installed 1 package in 332ms
+ numpy==1.26.4

As you might expect, you can also use uv to install:

  • a list of space-delimited packages
  • a requirements.txt file
  • a pyproject.toml file

If you need to generate a locked requirements.txt file, you can run uv pip compile.

Wrapping Up

Astral hopes to create a “Cargo for Python” with the release of uv. While it’s still early, this project is well worth watching as the Rust package itself is amazingly fast and useful even though it’s only been out for about a year. You can read more about uv in Astral’s blog post.

 

What's your reaction ?

Comments (0)

No reviews found

Follow us on Social Media

Some Categories


Warning: Attempt to read property "ID" on string in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 365

Warning: Attempt to read property "name" on string in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 365
Python

Recent posts


Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 407

Warning: Trying to access array offset on value of type null in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 412

June 24, 2025

Nulurencontract verdwijnt: nieuwe regels moeten leiden tot meer vaste contracten


Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 407

Warning: Trying to access array offset on value of type null in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 412

June 18, 2025

Loonstijgingen cao's vlakken in april 2025 af na 2,5 jaar van sterke groei


Warning: Trying to access array offset on value of type bool in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 412

June 17, 2025

Goede prompts voor ChatGPT bestaan uit deze 6 ingrediënten


Warning: Trying to access array offset on value of type bool in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 412

June 17, 2025

Opdrachtgevers twijfelen aan je zelfstandigheid? Dit certificaat lost het op


Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 407

Warning: Trying to access array offset on value of type null in /var/www/app.livelearn.nl/public_html/app/wp-content/themes/fluidify-child/single.php on line 412

June 05, 2025

Arbeidsmarkt blijft krap, lonen stijgen, participatie is hoog