{"id":22492961,"url":"https://github.com/noxecane/pyfunk","last_synced_at":"2025-10-12T04:06:56.929Z","repository":{"id":62580474,"uuid":"63825883","full_name":"noxecane/pyfunk","owner":"noxecane","description":"An exploration of functional programming in python","archived":false,"fork":false,"pushed_at":"2016-12-24T15:57:14.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:45:29.398Z","etag":null,"topics":["functional-programming","monads"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noxecane.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}},"created_at":"2016-07-21T01:15:04.000Z","updated_at":"2017-05-05T02:05:11.000Z","dependencies_parsed_at":"2022-11-03T21:01:27.844Z","dependency_job_id":null,"html_url":"https://github.com/noxecane/pyfunk","commit_stats":null,"previous_names":["danceasarxx/pyfunk"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/noxecane/pyfunk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noxecane%2Fpyfunk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noxecane%2Fpyfunk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noxecane%2Fpyfunk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noxecane%2Fpyfunk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noxecane","download_url":"https://codeload.github.com/noxecane/pyfunk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noxecane%2Fpyfunk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010240,"owners_count":26084718,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["functional-programming","monads"],"created_at":"2024-12-06T18:30:11.162Z","updated_at":"2025-10-12T04:06:56.914Z","avatar_url":"https://github.com/noxecane.png","language":"Python","readme":"# Gakp-pyfunk\nA set of functional tools for python. It is supposed to have the same interface as Gakp-jsfunk and Gakp-lispfunk\n\n## Example\n```python\nfrom pyfunk.combinators import compose\nfrom pyfunk.collections import fmap\nfrom pyfunk.functors.io import IO\n\n\ndef get_file(filename):\n    \"\"\"@sig get_file :: String -\u003e IO String \"\"\"\n    def open_file():\n        with open(filename) as f:\n            return f.read()\n    return IO(open_file)\n\n\ndef get_tokens(str):\n    return str.split()\n\n\ndef get_lenght_of_tokens(tokens):\n    return len(tokens)\n\ntokenLength = compose(fmap(get_lenght_of_tokens), fmap(get_tokens), get_file)\nprint(tokenLength('.gitignore').unsafeIO())\n```\n\n## Contributing\nAnyone can contribute using the fork and pull model.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoxecane%2Fpyfunk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoxecane%2Fpyfunk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoxecane%2Fpyfunk/lists"}