Registry / devops / pyproject2conda

pyproject2conda

JSON →
library0.23.1pypypiunverified

A script to convert a Python project declared in pyproject.toml to a conda environment.yml. Current version 0.22.1, updated monthly by US National Institute of Standards and Technology.

pip install pyproject2conda
INSTALL
IMPORT
SIG · PYPROJECT2CONDA
P
pyproject2conda
devopspythonv0.23.1
Install
4.3s avg
Import
Disk
39MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.23.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 42.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.3s · import 0.000s · 42MB
39MB installed
● package 39MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

convert
from pyproject2conda import convert
from pyproject2conda import convert

Convert pyproject.toml to conda environment.yml

from pyproject2conda import convert convert('pyproject.toml', 'environment.yml')
pyproject2conda --version
Debug
Known issues
gotchaDefault output uses conda channels; pip-only dependencies are included via pip section in environment.yml unless --pip-only flag is used.
fix
Use --pip-only flag or configure channels in your pyproject.toml.
affects: >=0.0.0
breakingConfiguration file option names changed from dash to underscore in v0.21.0. Old config keys with dashes no longer work.
fix
Replace dashes with underscores in config file keys (e.g., 'output-file' -> 'output_file').
affects: >=0.21.0
deprecatedPython 3.9 support was dropped. Requires Python >=3.10 as of v0.22.0.
fix
Upgrade Python to 3.10 or later.
affects: >=0.22.0
Upgrade
Version history
0.23.1latest on PyPI · released May 7, 2026
Audit
Dependencies
ruamel.yamlrequiredUsed for YAML output
typerrequiredCLI framework
Agent activity
12 hits · last 30 days
node
6
Resources
pyproject2conda — pip install pyproject2conda · libregistry