{"id":15686184,"url":"https://github.com/timoniq/fntypes","last_synced_at":"2025-05-07T03:21:27.492Z","repository":{"id":220062850,"uuid":"748537781","full_name":"timoniq/fntypes","owner":"timoniq","description":"Functional typing in Python","archived":false,"fork":false,"pushed_at":"2025-04-09T05:23:30.000Z","size":115,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T17:58:00.845Z","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/timoniq.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,"zenodo":null}},"created_at":"2024-01-26T07:44:52.000Z","updated_at":"2025-04-14T21:33:25.000Z","dependencies_parsed_at":"2024-03-15T00:36:05.952Z","dependency_job_id":"0994eed0-8323-4c3d-8e9a-77047ea87ac6","html_url":"https://github.com/timoniq/fntypes","commit_stats":null,"previous_names":["timoniq/monading"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoniq%2Ffntypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoniq%2Ffntypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoniq%2Ffntypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoniq%2Ffntypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timoniq","download_url":"https://codeload.github.com/timoniq/fntypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804787,"owners_count":21806877,"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-03T17:35:36.906Z","updated_at":"2025-05-07T03:21:27.476Z","avatar_url":"https://github.com/timoniq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fntypes\n\nFunctional typing in Python!\n\nSee [examples](/examples/)\n\nSee [documentation](/docs/index.md)\n\nfntypes is based on the belief that raising exceptions **should be avoided**. Therefore, it offers a set of functional types needed to write better code. This type strategy grants your project with higher control over type system - improves control flow\n\nContributions are welcome\n\n\n```python\n@unwrapping\ndef send_funds(\n    sender_id: int, \n    receiver_id: int, \n    amount: decimal.Decimal,\n) -\u003e Result[TransactionID, str]:\n    sender = get_user(sender_id).expect(\"Sender is undefined\")\n    receiver = get_user(receiver_id).expect(\"Receiver is undefined\")\n    if sender.get_balance().unwrap() \u003c amount:\n        return Error(\"Sender has not enough funds to complete transaction\")\n    \n    return Ok(\n        create_transaction(sender, receiver, amount)\n        .unwrap()\n        .transaction_id\n    )\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoniq%2Ffntypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoniq%2Ffntypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoniq%2Ffntypes/lists"}