Create a Conda environment file from a Python project using uv.
Project description
uv2conda
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
Release history Release notifications | RSS feed
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.6.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uv2conda-0.1.6.tar.gz.
File metadata
- Download URL: uv2conda-0.1.6.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21d16109dde150215809e4985ad4604df958d8456a9599ffe1622ed03bdd73d9
|
|
| MD5 |
03bfc99450cad0db1d1dca8e1f96530f
|
|
| BLAKE2b-256 |
f7b1304202bbdb41906064b5c759e372cd145b1504cc2ec55b33f4ea4375c7cb
|
File details
Details for the file uv2conda-0.1.6-py3-none-any.whl.
File metadata
- Download URL: uv2conda-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e1df887b5ca4444d766f0bd27e0448d6a936d2196afba77516d8ae1a991cd61
|
|
| MD5 |
a9f327520e2230ccf78b52804af2bb0e
|
|
| BLAKE2b-256 |
f438420a1332b5fa3e0ba1c9f071a9dac2439b6981eb7b05a453a3a752e327e8
|