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

bin+lib uv-migrator

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

47 stable releases

2025.3.4 Jan 7, 2025
2025.3.3 Jan 3, 2025
2025.2.7 Dec 27, 2024
2024.8.2 Dec 10, 2024
2024.3.3 Oct 27, 2024

#132 in Operating systems

Download history 959/week @ 2024-10-08 171/week @ 2024-10-15 172/week @ 2024-10-22 21/week @ 2024-10-29 792/week @ 2024-11-05 848/week @ 2024-11-12 223/week @ 2024-11-19 86/week @ 2024-11-26 305/week @ 2024-12-03 435/week @ 2024-12-10 46/week @ 2024-12-17 887/week @ 2024-12-24 563/week @ 2024-12-31 197/week @ 2025-01-07

1,717 downloads per month

MIT license

115KB
2.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

Coming Soon

Package formats
🔄 poetry package support
🔄 anaconda projects

Usage

Usage: uv-migrator [OPTIONS] [PATH]

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

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
      --self-update                  Update uv-migrator to the latest version
  -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

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

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

Dependencies

~5–22MB
~351K SLoC