{"id":28470506,"url":"https://github.com/olegalexander/oa-utils","last_synced_at":"2026-03-08T01:34:10.667Z","repository":{"id":294102827,"uuid":"985983516","full_name":"OlegAlexander/oa-utils","owner":"OlegAlexander","description":"Statically typed Python utilities for functional programming.","archived":false,"fork":false,"pushed_at":"2025-09-14T22:44:34.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T09:48:43.884Z","etag":null,"topics":["collection-pipeline","fluent-interface","functional-programming","utilities-python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/oa-utils/","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/OlegAlexander.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-18T23:20:30.000Z","updated_at":"2025-09-14T22:44:38.000Z","dependencies_parsed_at":"2025-07-01T17:38:25.435Z","dependency_job_id":"b508a5e1-2f30-4c65-8d6e-8d80b55f9e4a","html_url":"https://github.com/OlegAlexander/oa-utils","commit_stats":null,"previous_names":["olegalexander/oa-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OlegAlexander/oa-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlegAlexander%2Foa-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlegAlexander%2Foa-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlegAlexander%2Foa-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlegAlexander%2Foa-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OlegAlexander","download_url":"https://codeload.github.com/OlegAlexander/oa-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OlegAlexander%2Foa-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30240901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"ssl_error","status_checked_at":"2026-03-08T00:55:48.608Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["collection-pipeline","fluent-interface","functional-programming","utilities-python"],"created_at":"2025-06-07T09:30:47.722Z","updated_at":"2026-03-08T01:34:10.657Z","avatar_url":"https://github.com/OlegAlexander.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oa-utils\n\nStatically typed Python utilities for functional programming.\n\n## Pipeline\n\nThis class is useful for programming in the [collection pipeline](https://martinfowler.com/articles/collection-pipeline/) style. It wraps a homogenous variadic tuple and exposes a fluent interface with common functional programming operations. Why a tuple and not a \"lazy\" iterator? Because a tuple is relatively immutable and because, in my opinion, reified collections are much easier to reason about than stateful iterators (at the expense of performance).\n\n```python\nfrom oa_utils import Pipeline\n\nhamming_distance = (\n    Pipeline(\"karolin\") # ('k', 'a', 'r', 'o', 'l', 'i', 'n')\n    .zip_with(lambda a, b: int(a != b), \"kathrin\") # (0, 0, 1, 1, 1, 0, 0)\n    .sum() # 3\n)\n```\n\nSee [pipeline.py](https://github.com/OlegAlexander/oa-utils/blob/main/oa_utils/pipeline.py) for docstrings and doctests of every method.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegalexander%2Foa-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegalexander%2Foa-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegalexander%2Foa-utils/lists"}