Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Little process-based workers to do your bidding.

Deliberately minimalist, you provide the number of workers to use & a list of commands (to be executed at the shell) & littleworkers will eat through the list as fast as it can.

Why littleworkers?

littleworkers shines when you just want to parallelize something without a lot of fuss & when you care more about the data/commands to be run.

  • Tiny source

  • Easy to queue a set of actions

  • Works with any runnable commands

  • Uses processes

  • Non-blocking

Seriously, it’s not a replacement for threading or multiprocessing if your application needs to share a ton of data with the children.

Usage

Usage is trivial:

from littleworkers import Pool

# Define your commands.
commands = [
    'ls -al',
    'cd /tmp && mkdir foo',
    'date',
    'echo "Hello There."',
    'sleep 2 && echo "Done."'
]

# Setup a pool. Since I have two cores, I'll use two workers.
lil = Pool(workers=2)

# Run!
lil.run(commands)

For more advanced uses, please see the API documentation.

Requirements

  • Python 2.6+

author:

Daniel Lindsley

updated:

2011/11/10

version:

0.3.1

license:

BSD

Release files for littleworkers 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for littleworkers 0.3.2
File Size Uploaded
littleworkers-0.3.2.tar.gz 77.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for littleworkers 0.3.2
File Interpreter ABI Platform
littleworkers-0.3.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 82.6 kB

Release files / littleworkers-0.3.2.tar.gz

Download URL littleworkers-0.3.2.tar.gz
Size 77.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2f73cda5bed84e269c75def3d74d2764ac5742f97ebd8d6ad2747da077945dd6
BLAKE2b-256 checksum
How to use checksums
f72c0f35f9b28f645a50b0f23f1b44281a48bc1d059ba53d4acf41d826485001
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / littleworkers-0.3.2-py2.py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL littleworkers-0.3.2-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
701c6bee15a9ac8cc52758ad604fef4a034291f6951ab89aaf1469abdb1e9838
BLAKE2b-256 checksum
How to use checksums
40f88b4870e0073edf572e042822eaae208f635ad384f22ffefbc714d25ae6c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page