{"id":18390745,"url":"https://github.com/eifinger/pyfoldingathomecontrol","last_synced_at":"2025-04-07T02:35:20.889Z","repository":{"id":37940898,"uuid":"250311545","full_name":"eifinger/PyFoldingAtHomeControl","owner":"eifinger","description":"Python lib to get stats from your Folding@Home clients.","archived":false,"fork":false,"pushed_at":"2023-06-05T23:56:42.000Z","size":549,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T11:51:09.783Z","etag":null,"topics":["asyncio","hacktoberfest","python","python3"],"latest_commit_sha":null,"homepage":"","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/eifinger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-03-26T16:26:41.000Z","updated_at":"2024-01-12T18:12:30.000Z","dependencies_parsed_at":"2023-02-14T17:45:56.135Z","dependency_job_id":null,"html_url":"https://github.com/eifinger/PyFoldingAtHomeControl","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eifinger%2FPyFoldingAtHomeControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eifinger%2FPyFoldingAtHomeControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eifinger%2FPyFoldingAtHomeControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eifinger%2FPyFoldingAtHomeControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eifinger","download_url":"https://codeload.github.com/eifinger/PyFoldingAtHomeControl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247583690,"owners_count":20962066,"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":["asyncio","hacktoberfest","python","python3"],"created_at":"2024-11-06T01:49:03.531Z","updated_at":"2025-04-07T02:35:15.877Z","avatar_url":"https://github.com/eifinger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyFoldingAtHomeControl\n\nPython library to get stats from your Folding@Home Clients\n\n[![GitHub Actions](https://github.com/eifinger/PyFoldingAtHomeControl/workflows/Python%20package/badge.svg)](https://github.com/eifinger/PyFoldingAtHomeControl/actions?workflow=Python+package)\n[![PyPi](https://img.shields.io/pypi/v/PyFoldingAtHomeControl.svg)](https://pypi.python.org/pypi/PyFoldingAtHomeControl)\n[![PyPi](https://img.shields.io/pypi/l/PyFoldingAtHomeControl.svg)](https://github.com/eifinger/PyFoldingAtHomeControl/blob/master/LICENSE)\n[![codecov](https://codecov.io/gh/eifinger/PyFoldingAtHomeControl/branch/master/graph/badge.svg)](https://codecov.io/gh/eifinger/PyFoldingAtHomeControl)\n[![Downloads](https://pepy.tech/badge/pyfoldingathomecontrol)](https://pepy.tech/project/pyfoldingathomecontrol)\n\n## Installation\n\n```bash\npip install PyFoldingAtHomeControl\n```\n\n## Usage\n\n```python\nimport asyncio\nfrom FoldingAtHomeControl import FoldingAtHomeController\nfrom FoldingAtHomeControl import PyOnMessageTypes\n\n\ndef callback(message_type, data):\n    print(f\"callback for: {message_type}: \", data)\n\n\nasync def cancel_task(task_to_cancel):\n    task_to_cancel.cancel()\n    await task_to_cancel\n\n\nif __name__ == \"__main__\":\n    Controller = FoldingAtHomeController(\"localhost\")\n    Controller.register_callback(callback)\n    loop = asyncio.get_event_loop()\n    task = loop.create_task(Controller.start())\n    try:\n        loop.run_until_complete(task)\n    except KeyboardInterrupt:\n        pass\n    finally:\n        print(\"Cancelling task\")\n        try:\n            loop.run_until_complete(cancel_task(task))\n        except asyncio.CancelledError:\n            print(\"Closing Loop\")\n            loop.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feifinger%2Fpyfoldingathomecontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feifinger%2Fpyfoldingathomecontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feifinger%2Fpyfoldingathomecontrol/lists"}