{"id":15977822,"url":"https://github.com/suned/python-algebraic-effects","last_synced_at":"2026-05-08T20:33:00.875Z","repository":{"id":99018334,"uuid":"425062195","full_name":"suned/python-algebraic-effects","owner":"suned","description":"Purely Functional, coroutine based algebraic effects in Python","archived":false,"fork":false,"pushed_at":"2021-11-05T20:07:26.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T02:13:20.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suned.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-05T19:26:37.000Z","updated_at":"2025-01-23T04:39:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0eba967-549b-433d-936e-40943ab25e69","html_url":"https://github.com/suned/python-algebraic-effects","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"633330370ff95df04129ee052e31332c8949d4e9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suned/python-algebraic-effects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fpython-algebraic-effects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fpython-algebraic-effects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fpython-algebraic-effects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fpython-algebraic-effects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suned","download_url":"https://codeload.github.com/suned/python-algebraic-effects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fpython-algebraic-effects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32795925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-07T23:02:08.722Z","updated_at":"2026-05-08T20:33:00.860Z","avatar_url":"https://github.com/suned.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-algebraic-effects\nPurely Functional, coroutine based algebraic effects in Python\n\n# Example:\n```python\nfrom typing import Generator, Union, Any, Dict, Type\n\nfrom ask import Ask, AskHandler\nfrom files import ReadFile, ReadFileHandler\nfrom console import Print, PrintHandler\nfrom effect import run, Handler\n\n\ndef f() -\u003e Generator[Union[Ask, ReadFile], Any, str]:\n    name: str = yield Ask()\n    content: str = yield ReadFile(name)\n    return content\n\n\ndef test() -\u003e Generator[Union[Ask, ReadFile, Print], Any, str]:\n    content: str = yield from f()\n    yield Print(content)\n    return 'done'\n\n\nhandlers: Dict[Type, Handler] = {\n    ReadFile : ReadFileHandler(),\n    Ask      : AskHandler('effect.py'),\n    Print    : PrintHandler()\n}\nrun(test(), handlers)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuned%2Fpython-algebraic-effects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuned%2Fpython-algebraic-effects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuned%2Fpython-algebraic-effects/lists"}