{"id":40974123,"url":"https://github.com/alemazzo/python-java-stream","last_synced_at":"2026-01-22T06:49:38.310Z","repository":{"id":45151418,"uuid":"344151138","full_name":"alemazzo/python-java-stream","owner":"alemazzo","description":"Java Stream For Python","archived":false,"fork":false,"pushed_at":"2022-01-04T22:09:18.000Z","size":230,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-01T01:39:59.903Z","etag":null,"topics":["functional-programming","java-stream","python","python-functional","python-stream","stream"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alemazzo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELIST.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-03T14:18:37.000Z","updated_at":"2024-02-29T11:04:33.000Z","dependencies_parsed_at":"2022-09-08T19:01:03.883Z","dependency_job_id":null,"html_url":"https://github.com/alemazzo/python-java-stream","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alemazzo/python-java-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemazzo%2Fpython-java-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemazzo%2Fpython-java-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemazzo%2Fpython-java-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemazzo%2Fpython-java-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alemazzo","download_url":"https://codeload.github.com/alemazzo/python-java-stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemazzo%2Fpython-java-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28657334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","java-stream","python","python-functional","python-stream","stream"],"created_at":"2026-01-22T06:49:38.245Z","updated_at":"2026-01-22T06:49:38.301Z","avatar_url":"https://github.com/alemazzo.png","language":"Python","readme":"\u003c!--\n*** Thanks for checking out this README Template. If you have a suggestion that would\n*** make this better, please fork the repo and create a pull request or simply open\n*** an issue with the tag \"enhancement\".\n*** Thanks again! Now go create something AMAZING! :D\n--\u003e\n\n\n\n\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/alemazzo/python-java-stream\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/alemazzo/Python-Java-Stream/main/res/stream.png\" alt=\"Logo\" width=\"200\" height=\"200\"\u003e\n  \u003c/a\u003e\n\n  \u003ch1 align=\"center\"\u003ePython Stream\u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\n    The power of Java stream now available in Python\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/alemazzo/python-java-stream\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/alemazzo/python-java-stream\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/alemazzo/python-java-stream/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/alemazzo/python-java-stream/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n## Table of Contents\n\n- [Table of Contents](#table-of-contents)\n- [About The Project](#about-the-project)\n  - [Built With](#built-with)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n- [Usage](#usage)\n- [Roadmap](#roadmap)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n**What is Stream?**\n\nStream represents a sequence of objects from a source, which supports aggregate operations. \n\nFollowing are the characteristics of a Stream:\n\n* **Sequence of elements** − A stream provides a set of elements of specific type in a sequential manner. A stream gets/computes elements on demand. It never stores the elements.\n\n* **Source** − Stream takes Collections, Arrays, or I/O resources as input source.\n\n* **Aggregate operations** − Stream supports aggregate operations like filter, map, limit, reduce, find, and so on.\n\n* **Pipelining** − Most of the stream operations return stream itself so that their result can be pipelined. These operations are called intermediate operations and their function is to take input, process them, and return output to the target. toList() and toSet() methods are terminals operation which is normally present at the end of the pipelining operation to mark the end of the stream.\n\n* **Automatic iterations** − Stream operations do the iterations internally over the source elements provided, in contrast to Collections where explicit iteration is required.\n\n### Built With\n\n* [Python](https://python.org)\n\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nFollow this steps for install this tool in the right way.\n\n### Prerequisites\n\nThat's all you need to use Streams:\n\n* python3\n```sh\nsudo apt install python3\n```\n\n* pip\n```sh\nsudo apt install python3-pip\n```\n\n### Installation\n\n1. Install the module with **pip**\n  \n```sh\npip install java-stream\n```\n2. Import the module in your project\n  \n```py\nfrom stream import Stream\n```\n\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\nHere some example of how to use Streams:\n\n* Generate a list of 100 random numbers\n```py\nStream.randint(1, 100).limit(100).toList()\n```\n\n* Print the numbers from 1 to 100\n```py\nStream.integers().limit(100).forEach(print)\n```\n\n* Generate a list made of zeros with a length of 10\n```py\nStream.constant(0).limit(10).toList()\n```\n\n* Generate a list of squares of the number from 1 to 20\n```py\nIntStream.integers().map(lambda x: x**2).limit(20).toList()\n```\n\n* Generate a set of the first 100 odds number\n```py\nIntStream.odds().limit(100).toSet()\n```\n\n* Generate a list of all the primes number smaller than 1000\n```py\nStream.primes().takeWhile(lambda x: x \u003c 1000).toList()\n```\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/alemazzo/python-java-stream/issues) for a list of proposed features (and known issues).\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the GNU License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nAlessandro Mazzoli - [@alessandro.py](https://instagram.com/alessandro.py) - developer.alessandro.mazzoli@gmail.com\n\nProject Link: [https://github.com/alemazzo/python-java-stream](https://github.com/alemazzo/python-java-stream)\n\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/alemazzo/python-java-stream.svg?style=flat-square\n[contributors-url]: https://github.com/alemazzo/python-java-stream/graphs/contributors\n\n[forks-shield]: https://img.shields.io/github/forks/alemazzo/python-java-stream.svg?style=flat-square\n[forks-url]: https://github.com/alemazzo/python-java-stream/network/members\n\n[stars-shield]: https://img.shields.io/github/stars/alemazzo/python-java-stream.svg?style=flat-square\n[stars-url]: https://github.com/alemazzo/python-java-stream/stargazers\n\n[issues-shield]: https://img.shields.io/github/issues/alemazzo/python-java-stream.svg?style=flat-square\n[issues-url]: https://github.com/alemazzo/python-java-stream/issues\n\n\n[license-shield]: https://img.shields.io/github/license/alemazzo/python-java-stream.svg?style=flat-square\n[license-url]: https://github.com/alemazzo/python-java-stream/blob/master/LICENSE\n\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/alessandro-mazzoli-009868140\n\n[product-screenshot]: images/screenshot.png\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemazzo%2Fpython-java-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falemazzo%2Fpython-java-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemazzo%2Fpython-java-stream/lists"}