{"id":22051950,"url":"https://github.com/zachbateman/easy_multip","last_synced_at":"2025-03-23T15:28:16.514Z","repository":{"id":57425162,"uuid":"165911875","full_name":"zachbateman/easy_multip","owner":"zachbateman","description":"Simplify Python multiprocessing capabilities.","archived":false,"fork":false,"pushed_at":"2024-05-03T19:42:15.000Z","size":24,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T21:35:32.412Z","etag":null,"topics":["multiprocessing","python"],"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/zachbateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-01-15T19:37:46.000Z","updated_at":"2021-11-11T00:43:41.000Z","dependencies_parsed_at":"2025-01-29T12:46:13.933Z","dependency_job_id":null,"html_url":"https://github.com/zachbateman/easy_multip","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachbateman%2Feasy_multip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachbateman%2Feasy_multip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachbateman%2Feasy_multip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachbateman%2Feasy_multip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachbateman","download_url":"https://codeload.github.com/zachbateman/easy_multip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245121962,"owners_count":20564220,"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":["multiprocessing","python"],"created_at":"2024-11-30T15:12:24.402Z","updated_at":"2025-03-23T15:28:16.486Z","avatar_url":"https://github.com/zachbateman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easy_multip\n\neasy_multip is a small tool designed to simplify Python multiprocessing capabilities.\n\n# Current Features\n\n  - easy_multip.map(func, arg_group, leave_one_cpu_free=True)\n    - map() or list comprehension type functionality that is parallelized using multiprocessing and includes a progress bar\n    - Usage is similar to the below constructs:\n        ```sh\n        list(map(func, arg_group))\n            or\n        [func(arg) for arg in arg_group]\n        ```\n  - easy_multip.doloop(func, arg_group, leave_one_cpu_free=True)\n    - for loop equivalent that runs a function that returns None\n    - Useful in situations like file processing where each operation is expensive and totally independent\n    - Allocates jobs evenly among processors and provides a progress bar... of sorts\n    - Usage is similar to the below construct:\n        ```sh\n        for arg in arg_group:\n            func(arg)\n        ```\n  - easy_multip.decorators.use_multip(func, leave_one_cpu_free=True)\n    - Decorator providing capability of quickly adding multiprocessing to a function operating on a list\n    - ONLY for functions taking a list first arg that returns a list or None\n    - DO NOT USE `@decorator` syntax!  Must use the following pattern:\n        ```sh\n        def _func(list_arg, *args, **kwargs):\n            # stuff happens\n            return [] (or None)\n        func = use_multip(_func)\n        ```\n\nLicense\n----\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachbateman%2Feasy_multip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachbateman%2Feasy_multip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachbateman%2Feasy_multip/lists"}