{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/7"}],"enrichment":{"capability":"Wraps iterables (generators, lists, etc.) as file-like objects so code expecting `.read()` can consume streaming data without buffering to disk.","skillfed_tags":["file-like-adapter","streaming","interface-glue"],"use_cases":["Adapt a generator of bytes to feed into a library that requires a file-like object (e.g., image processing, archive extraction).","Stream text data line-by-line from a generator without materializing the full dataset into memory.","Convert network streams or database result iterators into file-like interfaces for downstream processing.","Avoid temporary file creation when bridging APIs that produce and consume data differently.","Read compressed or encoded data from a generator while handling text-mode decoding transparently."],"what_it_does":"iterable-io bridges a common interface mismatch: when one part of your code has a generator or other iterable producing data, but another part expects a file-like object with a `.read()` method. Rather than materializing the entire iterable into a temporary file (which is slow and memory-intensive), this library streams data on demand, pulling from the iterable as `.read()` is called.\n\nThe package exports a single function, `open_iterable()`, designed to mimic Python's builtin `open()`. It accepts an iterable, a mode string ('rb', 'rt', etc.), and optional parameters like encoding and buffering, returning a file-like object. This is useful for gluing together incompatible APIs\u2014for example, when a library expects a file handle but your data comes from a generator of bytes or lines.","worth_installing":"Yes. The package solves a real interface-adaptation problem with zero dependencies, low install friction, active maintenance, and no known vulnerabilities. The copyleft license (LGPL-3.0-only) is straightforward for most use cases but requires review if you plan to modify or redistribute the code. Install it when you need to feed an iterable into code expecting a file-like object."},"id":"iterable-io","links":{"html":"https://skillfed.io/packages/iterable-io","md":"https://skillfed.io/packages/iterable-io.md","pypi":"https://pypi.org/project/iterable-io/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-17","license_spdx":"LGPL-3.0-only","license_treatment":"copyleft","name":"iterable-io","python_support":"supports_current","summary":"Adapt generators and other iterables to a file-like interface"},"popularity":{"monthly_downloads":665646,"position":5427,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.4"}
