Registry / devops / unidep

unidep

JSON →
library3.3.4pypypi✓ verified 81d ago

UniDep unifies Conda and Pip requirements management by parsing a single requirements.yaml file to generate conda environment.yml, pip requirements.txt, pixi.toml, and setuptools dynamic dependencies. Current version: 3.1.0. Release cadence: regular minor releases following semantic versioning.

pip install unidep
INSTALL
IMPORT
SIG · UNIDEP
U
unidep
devopspythonv3.3.4
Install
2.0s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.3.4 · 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 · 20.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.0s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage

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

create_conda_env_specification
from unidep import create_conda_env_specification
from unidep import UniDep
parse_requirements
from unidep import parse_requirements
from unidep import UniDep
write_conda_environment_file
from unidep import write_conda_environment_file
from unidep import UniDep

Parse a requirements.yaml file and output a conda environment.yml dict.

from unidep import UniDep import os # Create a simple requirements.yaml content as string req_yaml = """ # requirements.yaml dependencies: - python >=3.9 - pip - pip: - requests """ import tempfile with tempfile.NamedTemporaryFile(mode='w', suffix='.yaml', delete=False) as f: f.write(req_yaml) req_file = f.name # Parse and generate conda environment.yml ud = UniDep(req_file) env = ud.to_conda_env() print(env) os.unlink(req_file)
unidep --version
Debug
Known issues
breakingIn version 2.0.0, the `local_dependencies` field schema changed to support a dictionary format. v1.x cannot read v2.0.0 files using the new format.
fix
Upgrade configuration if using new dictionary format, but note that v1.x consumers will break.
affects: 2.0.0+
gotchaThe `unidep` command-line interface writes files in the current directory by default. Always verify your working directory to avoid overwriting existing files.
fix
Use `--output-dir` flag to specify a safe output directory.
affects: all
gotchaWhen using pip-only packages in a conda environment, UniDep may demote them to pip dependencies. This can cause runtime import errors if the package is unavailable via conda.
fix
Explicitly list the package in both conda and pip sections if you need conda to install it; use `conda:` and `pip:` keys precisely.
affects: >=2.0.0
Upgrade
Version history
3.3.4latest on PyPI · released Jun 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
unidep — pip install unidep · libregistry