{"id":28559137,"url":"https://github.com/toastdriven/littleworkers","last_synced_at":"2025-06-10T08:36:18.112Z","repository":{"id":1515800,"uuid":"1773920","full_name":"toastdriven/littleworkers","owner":"toastdriven","description":"Little process-based workers to do your bidding.","archived":false,"fork":false,"pushed_at":"2016-02-23T02:32:45.000Z","size":24,"stargazers_count":148,"open_issues_count":1,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-07T16:54:57.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://readthedocs.org/docs/littleworkers/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toastdriven.png","metadata":{"files":{"readme":"README.rst","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":"2011-05-19T22:59:02.000Z","updated_at":"2024-11-28T16:28:47.000Z","dependencies_parsed_at":"2022-08-16T13:35:07.647Z","dependency_job_id":null,"html_url":"https://github.com/toastdriven/littleworkers","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Flittleworkers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Flittleworkers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Flittleworkers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Flittleworkers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toastdriven","download_url":"https://codeload.github.com/toastdriven/littleworkers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastdriven%2Flittleworkers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259039629,"owners_count":22796878,"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":[],"created_at":"2025-06-10T08:36:08.493Z","updated_at":"2025-06-10T08:36:18.087Z","avatar_url":"https://github.com/toastdriven.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============\nlittleworkers\n=============\n\nLittle process-based workers to do your bidding.\n\nDeliberately minimalist, you provide the number of ``workers`` to use \u0026\na list of commands (to be executed at the shell) \u0026 ``littleworkers`` will eat\nthrough the list as fast as it can.\n\n\nWhy littleworkers?\n==================\n\n``littleworkers`` shines when you just want to parallelize something without a\nlot of fuss \u0026 when you care more about the data/commands to be run.\n\n* Tiny source\n* Easy to queue a set of actions\n* Works with any runnable commands\n* Uses processes\n* Non-blocking\n\nSeriously, it's not a replacement for threading or multiprocessing if your\napplication needs to share a ton of data with the children.\n\n\nUsage\n=====\n\nUsage is trivial::\n\n    from littleworkers import Pool\n\n    # Define your commands.\n    commands = [\n        'ls -al',\n        'cd /tmp \u0026\u0026 mkdir foo',\n        'date',\n        'echo \"Hello There.\"',\n        'sleep 2 \u0026\u0026 echo \"Done.\"'\n    ]\n\n    # Setup a pool. Since I have two cores, I'll use two workers.\n    lil = Pool(workers=2)\n\n    # Run!\n    lil.run(commands)\n\nFor more advanced uses, please see the API documentation.\n\n\nRequirements\n============\n\n* Python 2.6+\n\n\n:author: Daniel Lindsley\n:updated: 2011/11/10\n:version: 0.3.1\n:license: BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastdriven%2Flittleworkers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoastdriven%2Flittleworkers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastdriven%2Flittleworkers/lists"}