conda-package-handling
Create and extract conda packages of various formats.
What it is and what it does
conda-package-handling is a library and CLI tool for working with conda package archives. It abstracts the details of different conda package formats, allowing you to create new packages, extract existing ones, and convert between formats without needing to understand the underlying compression and archive structures. The package is used internally by conda and conda-build to handle package operations.
The library exposes a Python API in conda_package_handling.api for programmatic use, and provides a cph command-line tool for interactive or scripted package manipulation. It depends on conda-package-streaming for efficient reading, requests for network operations, and zstandard for compression support.
Use it for:
- Extract conda packages for inspection or modification of their contents
- Create new conda packages from a directory structure in various formats
- Convert conda packages between .conda and .tar.bz2 formats
- Automate package building workflows that need to handle multiple package formats
- Integrate conda package operations into Python build or deployment scripts
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Create, extract, and convert conda packages in various formats (.conda, .tar.bz2, and others) via a Python API or command-line tool.
Yes, if you work with conda packages programmatically or need command-line package manipulation beyond conda's built-in tools. The package is actively maintained, has low install friction, carries a permissive license, and is used by conda itself. Install it if you're building conda packages, automating package workflows, or need format conversion capabilities.
Install
conda-package-handling on PyPI
pip
pip install conda-package-handlinguv
uv add conda-package-handlingpoetry
poetry add conda-package-handlingInstalling conda-package-handling
Before you install
Low friction install with three straightforward runtime dependencies. Repository is actively maintained with recent commits and no archived status.
License in practice
Permissive BSD license means you can use, modify, and distribute this package with minimal legal restrictions.
Quickstart
pip install conda-package-handling
from conda_package_handling.api import extract, create
extract('package.conda', 'output_dir')
create('output_dir', 'new_package.conda')
Requires Python 3.10 or later.
Verify before relying
- Whether the package handles all historical conda package formats or only a subset
- Performance characteristics when working with large or many packages
- Whether the cph command-line tool is feature-complete relative to conda's native tooling
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — conda-package-streaming, requests, zstandard |
| Maintenance | actively maintained — 67 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 108,150/month — #12,573 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: conda_package_handling-2.5.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
conda-package-streamingReads conda package metadata and contents from…
permissive · top 15,000 on PyPI
extractcodeExtracts a wide range of archive formats (tar,…
permissive · top 15,000 on PyPI
venv-packVenv-pack packages Python virtual environments…
permissive · top 15,000 on PyPI
pyunpackUnpacks archive files in Python with support…
permissive · top 15,000 on PyPI
py-rattlerpy-rattler provides Python bindings to…
permissive · top 15,000 on PyPI
jupyter-archiveA JupyterLab extension that adds archive…
permissive · top 15,000 on PyPI
arParses and reads ar archive files (.a),…
permissive · top 15,000 on PyPI
tzsttzst creates and extracts tar archives…
permissive · top 15,000 on PyPI
patoolPatool is a command-line archive manager that…
copyleft · top 5,000 on PyPI
zipfile-deflate64Enables extraction of Deflate64-compressed ZIP…
permissive · top 5,000 on PyPI