{"id":28305,"library":"streamerate","title":"Streamerate","description":"streamerate is a fluent and expressive Python library for chainable iterable processing, inspired by Java 8 streams. It provides lazy evaluation, parallel execution options, and a rich set of operations. Current version 1.2.11 requires Python >=3.10 and <4.0. It is actively maintained on GitHub.","status":"active","version":"1.2.11","language":"python","source_language":"en","source_url":"https://github.com/asuiu/streamerate","tags":["streams","iterable","functional","lazy","fluent","parallel"],"install":[{"cmd":"pip install streamerate","lang":"bash","label":"Standard PyPI install"}],"dependencies":[],"imports":[{"note":"The module has changed; stream is now directly in the top-level package.","wrong":"from streamerate.streams import stream","symbol":"stream","correct":"from streamerate import stream"}],"quickstart":{"code":"from streamerate import stream\n\n# Create a stream from a list and apply operations\nresult = stream([1, 2, 3, 4, 5])\\\n    .filter(lambda x: x > 2)\\\n    .map(lambda x: x * 2)\\\n    .to_list()\nprint(result)  # [6, 8, 10]","lang":"python","description":"Creates a stream from a list, filters elements greater than 2, maps each to double, and collects to a list."},"warnings":[{"fix":"Change 'from streamerate.streams import stream' to 'from streamerate import stream'.","message":"If you import from 'streamerate.streams' (old import), the module no longer exists. All public API is now under 'streamerate' directly.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Store the terminal result and reuse it, or recreate the stream.","message":"stream operations are lazy: they are not executed until a terminal operation (like to_list(), count(), etc.) is called. Repeated terminal operations on the same stream will raise a ValueError because the stream can only be operated upon once.","severity":"gotcha","affected_versions":"all"},{"fix":"Use .parallel() on the stream instead of passing parallel=True to stream().","message":"The 'parallel' parameter in stream() is deprecated in favor of explicit parallel operations like .parallel() method.","severity":"deprecated","affected_versions":">=1.2.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from streamerate import stream'.","cause":"Old import path 'from streamerate.streams import stream' no longer works.","error":"ImportError: cannot import name 'stream' from 'streamerate'"},{"fix":"Do not reuse the same stream after a terminal operation; create a new stream if needed.","cause":"A terminal operation was called on a stream that has already been consumed.","error":"ValueError: This stream can only be operated upon once"},{"fix":"Remove the parallel argument and use .parallel() method on the stream.","cause":"The parallel parameter in stream() constructor was removed in later versions.","error":"TypeError: stream() got an unexpected keyword argument 'parallel'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}