skillfed

conda-package-streaming

An efficient library to read from new and old format .conda and .tar.bz2 conda packages.

conda-package-streaming v0.13.0 326.8K downloads/30d#7,573 on PyPI14
Permissive license Active released

What it is and what it does

conda-package-streaming is a library for reading conda package archives (.conda and .tar.bz2 formats) without downloading entire files. It uses efficient HTTP range requests (typically 2–3 requests) to fetch only the metadata or specific components you need, and streams tar.bz2 files to avoid loading them into memory. The library exposes a simple API that yields (tarfile, member) tuples, letting you stop reading as soon as you have what you need.

It supports multiple data sources: URLs (HTTP/HTTPS), S3 buckets, local files, and file-like objects. This makes it useful for conda tools, package managers, and CI/CD systems that need to inspect package metadata or extract specific files without the overhead of downloading and decompressing entire packages.

Use it for:

  • Inspect conda package metadata (dependencies, version info) from a remote repository without downloading the full package.
  • Extract specific files from conda packages in CI/CD pipelines to validate or process package contents.
  • Stream package information from S3 or HTTP sources in cloud-based conda tooling.
  • Build conda package indexing or search tools that need fast metadata access.
  • Validate package integrity or contents before deciding whether to download the full archive.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Reads conda package metadata and contents from .conda and .tar.bz2 files without downloading entire packages, using efficient range requests or streaming to fetch only what you need.

Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a real problem for anyone working with conda packages at scale. The permissive BSD license poses no restriction. Install it if you need efficient metadata extraction from conda packages.

Install

conda-package-streaming on PyPI

pip

pip install conda-package-streaming

uv

uv add conda-package-streaming

poetry

poetry add conda-package-streaming

Installing conda-package-streaming

Before you install

Low friction: pure Python wheel with only two runtime dependencies (requests and backports.zstd). Active maintenance with a recent release 67 days ago and ongoing commits.

License in practice

BSD License (permissive): you can use this in commercial or proprietary projects with minimal restrictions, provided you include the license notice.

Quickstart

from conda_package_streaming.url import stream_conda_info
import json

for tar, member in stream_conda_info(url):
    if member.name == "info/index.json":
        index_json = json.load(tar.extractfile(member))
        break

Requires Python 3.10 or later; for .conda format, the file object must be seekable.

Verify before relying

  • Whether backports.zstd is available on all target platforms or requires system zstd libraries.
  • Performance characteristics when streaming large packages or over high-latency connections.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — requests, backports.zstd
Maintenance actively maintained — 67 days since the last release
Last repo commit
First released
Downloads 326,776/month — #7,573 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: conda_package_streaming-0.13.0-py3-none-any.whl

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

Tags

conda package metadata extractionread .conda files efficientlystream conda packageslazy conda package readingconda tar.bz2 streamingextract conda metadata without downloadefficient conda package parsing
conda-ecosystempackage-managementstreaming-io

More Build Tools packages