{"id":19462573,"url":"https://github.com/shahaf-f-s/multithreading","last_synced_at":"2026-05-16T03:35:13.576Z","repository":{"id":218268443,"uuid":"654915057","full_name":"Shahaf-F-S/multithreading","owner":"Shahaf-F-S","description":"A python module for creating multithreading processes easily, in a more Pythonic way.","archived":false,"fork":false,"pushed_at":"2024-04-19T15:55:19.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T08:13:26.485Z","etag":null,"topics":["functional-programming","multi-threading","multithreading","threading"],"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/Shahaf-F-S.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}},"created_at":"2023-06-17T10:14:15.000Z","updated_at":"2025-01-15T17:58:16.000Z","dependencies_parsed_at":"2024-04-19T17:09:54.426Z","dependency_job_id":null,"html_url":"https://github.com/Shahaf-F-S/multithreading","commit_stats":null,"previous_names":["shahaf-f-s/multithreading"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fmultithreading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fmultithreading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fmultithreading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shahaf-F-S%2Fmultithreading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shahaf-F-S","download_url":"https://codeload.github.com/Shahaf-F-S/multithreading/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240672817,"owners_count":19838929,"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":["functional-programming","multi-threading","multithreading","threading"],"created_at":"2024-11-10T18:03:45.749Z","updated_at":"2026-05-16T03:35:13.517Z","avatar_url":"https://github.com/Shahaf-F-S.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multithreading\n\n\u003e A python module for creating multithreading processes easily, in a more Pythonic way.\n\n## Installation\n```\npip install python-multithreading\n```\n\n## example\n\n```python\nimport time\n\nfrom multithreading import Caller, multi_threaded_call\n\ndef slow_function(number: int, delay: float) -\u003e dict[str, int | float]:\n\n    for i in range(number):\n        time.sleep(delay)\n\n    return dict(number=number, delay=delay)\n\nCALLS = 50\nDELAY = 0.01\nNUMBER = 100\n\ncallers = [\n    Caller(\n        target=slow_function,\n        kwargs=dict(delay=DELAY, number=NUMBER)\n    ) for _ in range(CALLS)\n]\n\ns = time.time()\n\nmulti_threaded_call(callers)\n\ne = time.time()\n\nprint(\"multi-threading: \", e - s)\n\ns = e\n\nall(slow_function(*caller.args, **caller.kwargs) for caller in callers)\n\ne = time.time()\n\nprint(\"single-threading: \", e - s)\n```\n\noutput\n```\nmulti-threading: 1.0473840236663818\nsingle-threading: 52.53497314453125\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahaf-f-s%2Fmultithreading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahaf-f-s%2Fmultithreading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahaf-f-s%2Fmultithreading/lists"}