{"id":22409905,"url":"https://github.com/v-spassky/no-exceptions","last_synced_at":"2026-02-05T04:33:54.006Z","repository":{"id":263783368,"uuid":"871632271","full_name":"v-spassky/no-exceptions","owner":"v-spassky","description":"🚨 Errors as values for Python.","archived":false,"fork":false,"pushed_at":"2024-10-22T16:20:49.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T22:15:54.861Z","etag":null,"topics":["error-handling","errors","exception-handling","exceptions","fluent","fluent-api","functional","functional-programming"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/no-exceptions/","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/v-spassky.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":"2024-10-12T14:00:45.000Z","updated_at":"2024-11-17T15:15:00.000Z","dependencies_parsed_at":"2024-11-20T10:55:28.925Z","dependency_job_id":"d9aa2074-1dc5-4cc7-9102-e0e0839c87cf","html_url":"https://github.com/v-spassky/no-exceptions","commit_stats":null,"previous_names":["v-spassky/no-exceptions"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/v-spassky/no-exceptions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-spassky%2Fno-exceptions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-spassky%2Fno-exceptions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-spassky%2Fno-exceptions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-spassky%2Fno-exceptions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v-spassky","download_url":"https://codeload.github.com/v-spassky/no-exceptions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-spassky%2Fno-exceptions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29111921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T03:44:17.043Z","status":"ssl_error","status_checked_at":"2026-02-05T03:44:12.077Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["error-handling","errors","exception-handling","exceptions","fluent","fluent-api","functional","functional-programming"],"created_at":"2024-12-05T12:10:21.505Z","updated_at":"2026-02-05T04:33:53.988Z","avatar_url":"https://github.com/v-spassky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# No exceptions\n\nErrors as values for Python. A more functional alternative to `try-except` blocks, offering less indented code and a\nchainable API.\n\n- Do you hate exceptions?\n- Do you hate the extra indentation they bring?\n- Do you hate the convoluted flow of control they seed?\n- Do you hate APIs that throw exceptions in not-really-erroneous cases (like `ZeroDivisionError`, `KeyError`,\n`IndexError`, `StopIteration`)?\n\nUse this package to switch from this:\n\n```python\ndef some_func() -\u003e float:\n    ...\n    try:\n        return numerator / denominator\n    except ZeroDivisionError:\n        return 0.0\n```\n\nto this:\n\n```python\nfrom no_exceptions import try_expecting\n\ndef some_func() -\u003e float:\n    ...\n    return try_expecting(lambda: numerator / denominator, ZeroDivisionError).unwrap_or(0.0)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-spassky%2Fno-exceptions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv-spassky%2Fno-exceptions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-spassky%2Fno-exceptions/lists"}