{"id":24199578,"url":"https://github.com/fivepoint-0/python-multiprocessing-class","last_synced_at":"2026-04-21T03:33:13.425Z","repository":{"id":114761047,"uuid":"542296985","full_name":"fivepoint-0/python-multiprocessing-class","owner":"fivepoint-0","description":"This is a code base that demonstrates how multiprocessing in Python can be abstracted and extended, removing confusion and unnecessary thought from the multiprocessing piece of running your Python code.","archived":false,"fork":false,"pushed_at":"2022-09-27T21:44:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T09:27:50.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fivepoint-0.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,"publiccode":null,"codemeta":null}},"created_at":"2022-09-27T21:32:36.000Z","updated_at":"2022-09-27T21:33:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"41e9f3e9-1462-4800-81d3-4569383cda07","html_url":"https://github.com/fivepoint-0/python-multiprocessing-class","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fivepoint-0/python-multiprocessing-class","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivepoint-0%2Fpython-multiprocessing-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivepoint-0%2Fpython-multiprocessing-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivepoint-0%2Fpython-multiprocessing-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivepoint-0%2Fpython-multiprocessing-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivepoint-0","download_url":"https://codeload.github.com/fivepoint-0/python-multiprocessing-class/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivepoint-0%2Fpython-multiprocessing-class/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32075242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-01-13T20:37:07.363Z","updated_at":"2026-04-21T03:33:13.411Z","avatar_url":"https://github.com/fivepoint-0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Multiprocessing Class (Extendable)\n\n\n**! NOTE ! --\u003e YOU NEED TO HAVE PYTHON 3.3 OR ABOVE INSTALLED**\n\nYou will notice three files in the project:\n\n- `src/app.py`\n- `src/mp.py`\n- `src/number_processor.py`\n\nHere is the overview of this project: \n\n*`app.py` imports the number_processor.NumberProcessor class, which is defined in `number_processor.py`. The NumberProcessor class is an extension of the `Multiprocessor` class, which is from `mp.py`.*\n\nThe example extension of the generic `Multiprocessor` class is `NumberProcessor`, which only needs to define it's `run()` function. This run function can define any number of arguments. \n\nTradeoff: Python intellisense in any editors will not throw errors until runtime if the number/types of the arguments to an extension-based class `run()` function due to the generic nature of the `Multiprocessor` class.\n\n## How do I start?\n\nThe first thing to do is create a Python *virtual environment*. This step isn't *necessarily* required as there are no third party packages used in this repository.\n\nAn easy way to instantiate a virtual environment is by using the Make recipe: `make venv`\n\nWith or without the virtual environment, you can start the test in this repository by running `make start`, which is equivalent to `python src/app.py`.\n\n## Running it went great! Where do I go from here?\n\nBring the `Multiprocessor` class with you wherever you go to do a bunch of iterable work! Create an extension of the class that runs batches of arguments against the same function, or test it out on a piece of code you think could be faster by asynchronously feeding arguments into the same function! You can bring this anywhere where the version of Python is 3.3 or above.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivepoint-0%2Fpython-multiprocessing-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivepoint-0%2Fpython-multiprocessing-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivepoint-0%2Fpython-multiprocessing-class/lists"}