Skip to main content

Create a Conda environment file from a Python project using uv.

Project description

uv2conda

PyPI

Tiny Python package to create a conda environment file from a Python project using uv.

pip install uv2conda
uv2conda \
    --project-dir "/path/to/my/project/" \
    --name "my_conda_env_name" \
    --python "3.12.7" \
    --conda-env-path "my_conda_env.yaml" \
    --requirements-path "requirements.txt" \
    --uv-args "--prerelease=allow"

Or, in Python:

import uv2conda

uv2conda.make_conda_env_from_project_dir(
    "/path/to/my/project/",
    name="my_conda_env_name",
    python_version="3.12.7",
    out_path="environment.yaml",
    requirements_path="requirements.txt",
    uv_args=["--prerelease=allow"],
)

Example for this library:

uv2conda --python 3.12.7 --show

Output (printed on screen as we used --show):

name: uv2conda
dependencies:
- python=3.12.7
- pip
- pip:
  - click==8.1.7
  - colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows'
  - loguru==0.7.2
  - markdown-it-py==3.0.0
  - mdurl==0.1.2
  - packaging==24.2
  - pygments==2.18.0
  - pyyaml==6.0.2
  - rich==13.9.4
  - shellingham==1.5.4
  - typer==0.13.1
  - typing-extensions==4.12.2
  - win32-setctime==1.1.0 ; sys_platform == 'win32'

Related projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uv2conda-0.1.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uv2conda-0.1.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file uv2conda-0.1.4.tar.gz.

File metadata

  • Download URL: uv2conda-0.1.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.6

File hashes

Hashes for uv2conda-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8d184e2ab4272779a4a114495cc4db62ca910e108188a14bd375836403c50eac
MD5 0368a26be1e643353053123b1a940106
BLAKE2b-256 5410c4d8022520496cd384e21a686b3eec07cdcf8e6701b617986f6554d49b98

See more details on using hashes here.

File details

Details for the file uv2conda-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: uv2conda-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.6

File hashes

Hashes for uv2conda-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d11757569aa10aaf6b9d861dbdfb60712ccabab405285334a24d86ab92cc509
MD5 7350e10489e79098e8d9316b3d63b108
BLAKE2b-256 466eda85565910cf3cd1f9aaae458f8a54f37a2e22b1a607c0c767cca9b62735

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page