{"id":16617569,"url":"https://github.com/ddworken/magicresult","last_synced_at":"2025-10-17T19:37:37.304Z","repository":{"id":57439186,"uuid":"214908712","full_name":"ddworken/magicresult","owner":"ddworken","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-13T23:25:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T19:51:30.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ddworken.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}},"created_at":"2019-10-13T23:23:56.000Z","updated_at":"2020-03-10T03:25:30.000Z","dependencies_parsed_at":"2022-09-26T17:20:23.130Z","dependency_job_id":null,"html_url":"https://github.com/ddworken/magicresult","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/ddworken%2Fmagicresult","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fmagicresult/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fmagicresult/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fmagicresult/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddworken","download_url":"https://codeload.github.com/ddworken/magicresult/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242968494,"owners_count":20214471,"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":[],"created_at":"2024-10-12T02:17:08.264Z","updated_at":"2025-10-17T19:37:32.265Z","avatar_url":"https://github.com/ddworken.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic Results\n\nUsage:\n\n```\n# -*- coding: macro -*-\n\nfrom magicresult import Result, ok, error, attempt\n\ndef get_str_ok() -\u003e Result[str]:\n    return ok(\"hello world\")\n\ndef get_str_err() -\u003e Result[str]:\n    return error(\"something went wrong\")\n\ndef magic_example() -\u003e Result[None]:\n    a = attempt(get_str_ok())\n    print(\"First string is: \" + a)\n    b = attempt(get_str_err())\n    print(\"Second string is: \" + b)\n    return ok(None)\n\nprint(f\"magic_example returned {magic_example()}\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddworken%2Fmagicresult","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddworken%2Fmagicresult","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddworken%2Fmagicresult/lists"}