--- id: pyproject2conda version: "0.23.1" license: NIST-PD license_treatment: unclear maintenance: active --- # pyproject2conda — A script to convert a Python project declared on a pyproject.toml to a conda environment. License: unclear · Maintenance: active · Downloads: 124.6K/mo ## What it is and what it does pyproject2conda is a command-line tool that reads dependency declarations from a Python project's pyproject.toml file and generates conda environment.yaml and requirements.txt files. It solves the problem of maintaining dependency information in two places when working with mixed pip and conda workflows—you declare everything once in pyproject.toml, and the tool generates the conda-compatible output automatically. The package supports remapping PyPI package names to their conda equivalents (useful when a package has different names in the two ecosystems), filtering dependencies by Python version using standard markers, and optionally including Python version constraints in the output. It integrates with pre-commit hooks to keep generated files in sync with pyproject.toml changes. Dependencies are runtime-minimal: packaging, pydantic, tomli, typer, and typing-extensions. Use it for: - Keep a single source of truth for dependencies across pip and conda-based development environments. - Automatically generate environment.yaml files for conda users from a pyproject.toml-based project. - Remap PyPI package names to conda equivalents where they differ across ecosystems. - Filter dependencies by Python version and generate version-specific environment files. - Use pre-commit hooks to ensure environment files stay synchronized with pyproject.toml changes. - Generate requirements.txt from pyproject.toml for pip-only workflows. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts Python project dependencies from pyproject.toml into conda environment.yaml and requirements.txt files, with support for remapping PyPI package names to conda equivalents. Yes, if you maintain a Python project and need to support both pip and conda users. The tool solves a real workflow problem (single-source dependency management), has low install friction, active maintenance, no known vulnerabilities, and public-domain licensing. The Pre-Alpha status reflects ongoing development but does not indicate instability—the author actively uses it. Install it if you're already using pyproject.toml and want to avoid manually maintaining separate conda environment files. ## Install pip install pyproject2conda uv add pyproject2conda poetry add pyproject2conda ## Installing pyproject2conda Before you install: Low install friction with a pure Python wheel and five lightweight runtime dependencies. Actively maintained with a recent release; marked Pre-Alpha but in active use by the author. License in practice: Licensed under NIST-PD (public domain), which places no restrictions on use, modification, or distribution. Quickstart: pip install pyproject2conda pyproject2conda yaml --pyproject pyproject.toml # Output: environment.yaml with conda dependencies extracted from pyproject.toml Requires Python >=3.10; pyproject.toml must contain project.dependencies or project.optional-dependencies sections. Verify before relying: - Whether the package handles all environment markers correctly in practice. - Performance characteristics when processing large or complex dependency graphs. - Compatibility with non-standard pyproject.toml layouts or edge cases in dependency specifications. ## Package facts - License: NIST-PD (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 124.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pyproject.toml to conda environment, convert dependencies conda yaml, pip to conda environment generator, pyproject conda environment file, dependency management pyproject conda, environment.yaml from pyproject, conda environment automation, dependency-management, conda-integration, build-automation [View on SkillFed](https://skillfed.io/packages/pyproject2conda) · [View on PyPI](https://pypi.org/project/pyproject2conda/)