conda-package-streaming
An efficient library to read from new and old format .conda and .tar.bz2 conda packages.
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-streaminguv
uv add conda-package-streamingpoetry
poetry add conda-package-streamingInstalling 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
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-handlingCreate, extract, and convert conda packages in…
permissive · top 15,000 on PyPI
metaflow-netflixextProvides Netflix-developed extensions to…
permissive · top 15,000 on PyPI
stream-zipConstructs ZIP archives on-the-fly without…
permissive · top 15,000 on PyPI
remotezip2Reads and extracts files from ZIP archives…
permissive · top 15,000 on PyPI
tzsttzst creates and extracts tar archives…
permissive · top 15,000 on PyPI
remotezipDownload individual files from remote zip…
permissive · top 15,000 on PyPI
zipstream-newGenerates zip archives as iterators of byte…
copyleft · top 15,000 on PyPI
json-streamStreams JSON data from files, URLs, or…
permissive · top 5,000 on PyPI
jupyter-archiveA JupyterLab extension that adds archive…
permissive · top 15,000 on PyPI
rpmfileInspect and extract files from RPM archive…
permissive · top 5,000 on PyPI