{"id":25365884,"url":"https://github.com/willguimont/pipeline","last_synced_at":"2025-10-08T19:03:07.974Z","repository":{"id":111211175,"uuid":"404373933","full_name":"willGuimont/pipeline","owner":"willGuimont","description":"Lightweight pipeline library","archived":false,"fork":false,"pushed_at":"2023-04-06T00:17:16.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T03:02:44.547Z","etag":null,"topics":["arrow","functional-programming","lambda","pipeline","python"],"latest_commit_sha":null,"homepage":"","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/willGuimont.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}},"created_at":"2021-09-08T14:13:47.000Z","updated_at":"2024-02-14T02:45:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"90158d6b-cac7-47bc-a8cf-e7893267f9f0","html_url":"https://github.com/willGuimont/pipeline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Fpipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Fpipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Fpipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Fpipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willGuimont","download_url":"https://codeload.github.com/willGuimont/pipeline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247984674,"owners_count":21028544,"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","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":["arrow","functional-programming","lambda","pipeline","python"],"created_at":"2025-02-14T23:51:05.252Z","updated_at":"2025-10-08T19:03:02.943Z","avatar_url":"https://github.com/willGuimont.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pipeline\n\nSome transforms utilities based on `Arrows` from Haskell.\n\n# Installation\n\nAdd the following line in your `requirements.txt`:\n\n```\ngit+https://github.com/willGuimont/pipeline\n```\n\n# Usage\n\n```python\nimport pipeline as pp\n\ninput_value = 7\ntransform = pp.Compose([\n    pp.Tee(),\n    pp.First(lambda x: x + 1),\n    pp.Second(lambda x: x - 1),\n    pp.Both(lambda x: x * 2),\n    pp.Bifunctor(lambda x: x // 3, lambda x: x * 2),\n    pp.Both(str),\n    pp.Lambda(lambda x: ''.join(x))\n])\n\noutput = transform(input_value)\nprint(output)\nassert output == \"524\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillguimont%2Fpipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillguimont%2Fpipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillguimont%2Fpipeline/lists"}