{"id":24819728,"url":"https://github.com/sebbekarlsson/simple-pipe","last_synced_at":"2025-10-13T20:30:52.532Z","repository":{"id":57467549,"uuid":"112944818","full_name":"sebbekarlsson/simple-pipe","owner":"sebbekarlsson","description":"🚿 Function Composition for Python","archived":false,"fork":false,"pushed_at":"2019-10-25T11:53:46.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-25T12:41:21.548Z","etag":null,"topics":["composition","functional-programming","pipe","python"],"latest_commit_sha":null,"homepage":null,"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/sebbekarlsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-03T16:39:33.000Z","updated_at":"2024-12-11T20:47:57.000Z","dependencies_parsed_at":"2022-09-19T08:51:14.000Z","dependency_job_id":null,"html_url":"https://github.com/sebbekarlsson/simple-pipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sebbekarlsson/simple-pipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fsimple-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fsimple-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fsimple-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fsimple-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebbekarlsson","download_url":"https://codeload.github.com/sebbekarlsson/simple-pipe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fsimple-pipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016921,"owners_count":26085908,"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-10-13T02:00:06.723Z","response_time":61,"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":["composition","functional-programming","pipe","python"],"created_at":"2025-01-30T17:59:51.555Z","updated_at":"2025-10-13T20:30:52.272Z","avatar_url":"https://github.com/sebbekarlsson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipe Function Composition for Python!\n\u003e pipe methods in Python!\n\n## Usage:\n```python\nfrom simple_pipe import pipe\n\n\npipe(\u003cmethods separated by comma\u003e)(\u003cyour input\u003e)\n\n# your input variable will go through all the methods,\n# and then the pipe method will return the final modified variable.\n```\n\n## Example:\n```python\nfrom simple_pipe import pipe\n\n\nmyvar = 'hello world'\n\nprint(pipe(lambda x: x.title(), lambda x: x.replace(' ', ''))(myvar))\n\n\u003e\u003e HelloWorld\n```\n\n\u003e You can also create re-usable `compositions` like this:\n```python\nobjects = [{'name': 'John'}, {'name': 'Lisa'}, {'Name': 'Eric'}]\n\ncomposition = pipe(\n    lambda x: safe_set_attribute(x, 'age', 21),\n    lambda x: safe_set_attribute(x, 'color', 'green')\n)\n\nobjects = [composition(obj) for obj in objects]\n\nprint(objects)\n\n\u003e\u003e [\n    {'name': 'John', 'age': 21, 'color': 'green'},\n    {'name': 'Lisa', 'age': 21, 'color': 'green'},\n    {'Name': 'Eric', 'age': 21, 'color': 'green'}\n]\n```\n\n## Install\n\u003e Run:\n\n    pip install simple-pipe\n\n\u003e or ...\n\n* Clone down the repository\n\n\u003e And then execute:\n\n    python setup.py install\n\n## Running Unit Tests\n\n    pip install pytest\n    pytest .\n\n## License\n\u003e [GPL 3.0](gpl-3.0.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebbekarlsson%2Fsimple-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebbekarlsson%2Fsimple-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebbekarlsson%2Fsimple-pipe/lists"}