skillfed

conda-package-handling

Create and extract conda packages of various formats.

conda-package-handling v2.5.0 108.2K downloads/30d#12,573 on PyPI27
Permissive license Active released

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-handling

uv

uv add conda-package-handling

poetry

poetry add conda-package-handling

Installing 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

License :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

conda package creation and extractionconda package format conversionbuild conda packagesextract conda archivesconda package management tool
condapackagingbuild-tools

More Build Tools packages