{"id":15009191,"url":"https://github.com/vickumar1981/pyeffects","last_synced_at":"2025-10-01T02:32:18.365Z","repository":{"id":42203430,"uuid":"250471460","full_name":"vickumar1981/pyeffects","owner":"vickumar1981","description":"Handle side-effects in Python like a boss.  Implements functional types for Either, Option, Try, and Future.","archived":false,"fork":false,"pushed_at":"2024-07-15T19:06:44.000Z","size":378,"stargazers_count":32,"open_issues_count":13,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T17:26:13.769Z","etag":null,"topics":["either","either-monad","future","future-monad","futures","hacktoberfest","hacktoberfest-accepted","hacktoberfest2023","monad","monads","option","option-monad","option-type","python","python27","python3","try","try-catch","try-monad"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vickumar1981.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2020-03-27T07:43:46.000Z","updated_at":"2025-01-06T01:28:17.000Z","dependencies_parsed_at":"2024-01-18T14:40:38.200Z","dependency_job_id":"5f87fab9-d910-497f-9cb4-051b410d5dd3","html_url":"https://github.com/vickumar1981/pyeffects","commit_stats":{"total_commits":86,"total_committers":7,"mean_commits":"12.285714285714286","dds":0.2558139534883721,"last_synced_commit":"ae4c2e187ec0c31971f512e0ca556c7db143ce6f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fpyeffects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fpyeffects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fpyeffects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fpyeffects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vickumar1981","download_url":"https://codeload.github.com/vickumar1981/pyeffects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234639241,"owners_count":18864530,"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":["either","either-monad","future","future-monad","futures","hacktoberfest","hacktoberfest-accepted","hacktoberfest2023","monad","monads","option","option-monad","option-type","python","python27","python3","try","try-catch","try-monad"],"created_at":"2024-09-24T19:23:31.395Z","updated_at":"2025-10-01T02:32:13.067Z","avatar_url":"https://github.com/vickumar1981.png","language":"Python","readme":"![Logo](logo.jpg)\n\n# pyEffects  \n\n\u003c!-- Pytest Coverage Comment:Begin --\u003e\n\u003c!-- Pytest Coverage Comment:End --\u003e\n[![PyPI version](https://badge.fury.io/py/pyeffects.svg)](https://badge.fury.io/py/pyeffects) [![Documentation Status](https://readthedocs.org/projects/pyeffects/badge/?version=latest)](https://pyeffects.readthedocs.io/en/latest/?badge=latest)\n [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/vickumar1981/pyeffects/blob/master/LICENSE)\n\nMonads for Python.  Side-effect explicitly.\n\nHandle your side-effects in Python like a boss.  Implements functional types for Either, Option, Try, and Future.\n\nFor more detailed information, please refer to the [API Documentation](https://pyeffects.readthedocs.io/en/latest/ \"API Documentation\").\n\n---\n### 1. Install\n\n`pip install pyeffects`\n\n---\n### 2. Using Option\n```python\n\u003e\u003e\u003e from pyeffects.Option import *\n\u003e\u003e\u003e val = Some(5).map(lambda v: v * v)\n\u003e\u003e\u003e val\nSome(25)\n\u003e\u003e\u003e val.is_defined()\nTrue\n\u003e\u003e\u003e val.get()\n25\n\n```\n\n---\n### 3. Using Try\n```python\n\u003e\u003e\u003e from pyeffects.Try import *\n\u003e\u003e\u003e val = Success(5).map(lambda v: v * v)\n\u003e\u003e\u003e val\nSuccess(25)\n\u003e\u003e\u003e val.is_success()\nTrue\n\u003e\u003e\u003e val.get()\n25\n\n```\n\n---\n### 4. Using Either\n```python\n\u003e\u003e\u003e from pyeffects.Either import *\n\u003e\u003e\u003e val = Right(5).map(lambda v: v * v)\n\u003e\u003e\u003e val\nRight(25)\n\u003e\u003e\u003e val.is_right()\nTrue\n\u003e\u003e\u003e val.right()\n25\n```\n\n---\n### 5. Using Future\n```python\n\u003e\u003e\u003e from pyeffects.Future import *\n\u003e\u003e\u003e val = Future.of(5).map(lambda v: v * v)\n\u003e\u003e\u003e val\nFuture(Success(25))\n\u003e\u003e\u003e val.on_complete(lambda v: print(v))\nSuccess(25)\n\u003e\u003e\u003e val.get()\n25\n```\n\n---\n### 6. Reporting an Issue\n\nPlease report any issues or bugs to the [Github issues page](https://github.com/vickumar1981/pyeffects/issues). \n\n---\n### 7. License\n\nThis project is licensed under the [Apache 2 License](https://github.com/vickumar1981/pyeffects/blob/master/LICENSE).\n","funding_links":[],"categories":["Awesome Functional Python"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickumar1981%2Fpyeffects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvickumar1981%2Fpyeffects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickumar1981%2Fpyeffects/lists"}