#python-packages #package-manager #python #uv #projects #migration #package-management

bin+lib uv-migrator

Tool for converting various python package soltutions to use the uv solution by astral

56 stable releases

Uses new Rust 2024

2025.7.1 Feb 27, 2025
2025.7.0 Feb 25, 2025
2025.5.0 Jan 26, 2025
2025.2.7 Dec 27, 2024
2024.3.3 Oct 27, 2024

#131 in Operating systems

Download history 245/week @ 2024-11-18 5/week @ 2024-11-25 385/week @ 2024-12-02 413/week @ 2024-12-09 69/week @ 2024-12-16 888/week @ 2024-12-23 537/week @ 2024-12-30 234/week @ 2025-01-06 143/week @ 2025-01-13 116/week @ 2025-01-20 62/week @ 2025-01-27 251/week @ 2025-02-03 34/week @ 2025-02-10 319/week @ 2025-02-17 442/week @ 2025-02-24 66/week @ 2025-03-03

869 downloads per month

MIT license

195KB
4.5K SLoC

UV Migrator

Disclaimer

This project is not associated with astral or the uv project in anyway

What is it?

UV Migrator is simple cli tool designed to seamlessly transition Python projects from various dependency management systems to the UV package manager. It handles the complexities of migration while preserving your project's dependencies and any existing configs. This project currently supports migrating applications that consume packages, stay tuned for support for migrating packages themselves.

Installation

easy install script, source located at install.sh

curl https://uv-migrator.stvnksslr.com/install.sh | bash

Install via Cargo

cargo install uv-migrator

Currently Supported

✅ Poetry projects
✅ Pip projects
✅ Multiple requirements files
✅ Auto detect development dependencies and dependency groups
✅ Custom package indexes
✅ Pipenv support

Package Formats
✅ setup.py packages
✅ poetry packages

Coming Soon

Project formats
🔄 anaconda projects

Usage

 uv-migrator -h
A tool for migrating Python projects to use the uv package manager

Usage: uv-migrator [OPTIONS] [PATH]

Arguments:
  [PATH]  The path to the project directory to migrate [default: .]

Options:
      --merge-groups                 Merge all dependency groups into the dev group
      --import-global-pip-conf       Import extra index URLs from ~/.pip/pip.conf
      --import-index <import-index>  Additional index URL to import
      --disable-restore              Disable automatic file restore on error
      --self-update                  Update uv-migrator to the latest version
      --check-update                 Check for updates without installing them
  -h, --help                         Print help (see more with '--help')
  -V, --version                      Print version

EXAMPLES:
# Migrate a project in the current directory
uv-migrator .

# Merge all dependency groups into dev dependencies
uv-migrator . --merge-groups

# Migrate a project with a private package index
uv-migrator . --import-index https://private.pypi.org/simple/

# Migrate using global pip configuration
uv-migrator . --import-global-pip-conf

# Migrate without automatic restore on error
uv-migrator . --disable-restore

# Check for updates without installing them
uv-migrator --check-update

# Update to the latest version
uv-migrator --self-update

For more information and documentation, visit:
https://github.com/stvnksslr/uv-migrator

Dependencies

~5–22MB
~361K SLoC