{"id":31041196,"url":"https://github.com/byte-sourcerer/functionalstream","last_synced_at":"2025-09-14T09:42:34.865Z","repository":{"id":62568791,"uuid":"278987656","full_name":"byte-sourcerer/functionalstream","owner":"byte-sourcerer","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-27T06:09:23.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T08:23:41.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byte-sourcerer.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-07-12T04:00:37.000Z","updated_at":"2020-08-27T06:09:25.000Z","dependencies_parsed_at":"2022-11-03T16:46:49.119Z","dependency_job_id":null,"html_url":"https://github.com/byte-sourcerer/functionalstream","commit_stats":null,"previous_names":["cjwcommuny/functionalstream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byte-sourcerer/functionalstream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-sourcerer%2Ffunctionalstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-sourcerer%2Ffunctionalstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-sourcerer%2Ffunctionalstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-sourcerer%2Ffunctionalstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byte-sourcerer","download_url":"https://codeload.github.com/byte-sourcerer/functionalstream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-sourcerer%2Ffunctionalstream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275088379,"owners_count":25403372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":[],"created_at":"2025-09-14T09:42:26.446Z","updated_at":"2025-09-14T09:42:34.853Z","avatar_url":"https://github.com/byte-sourcerer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# functionalstream\n\n## Installation\n\n```shell script\npip install functionalstream\n```\n\n## Example\n\n### Stream\n\n```python\nfrom functionalstream import Stream\n\n# lst1 = [0, 6, 12, 18, 24]\nlst1 = Stream(range(10)).filter(lambda x: x % 2 == 0).map(lambda x: x * 3).to_list()\n\n# lst2 = [(1, 2), (3, 4)]\nlst2 = Stream([(1,2), (3,4), (6,5)]).filter(lambda x, y: x \u003c y, star=True).to_list()\n\n# array = array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.])\narray = Stream(range(10)).to_numpy_array(dtype=float)\n\n# for function which has side effect\nStream(range(10)).apply(lambda x: print(x))\n```\n\n### PathStream\n\n```python\nfrom functionalstream import PathStream\n\nvideo_paths = PathStream.from_path('./').filter_extension(extensions={\".jpeg\"})\n```\n\n\n### Pipeline\n\n```python\nfrom functionalstream.functions import increment\nfrom functionalstream import Stream\n\n# x = 3\nx = Stream([increment] * 3).pipeline(0)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyte-sourcerer%2Ffunctionalstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyte-sourcerer%2Ffunctionalstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyte-sourcerer%2Ffunctionalstream/lists"}