py-threadpool
Thread pool library for Humans.
Installation
Using pip
pip install SimplePool
or to get the source via pip, use
pip install -e git+https://github.com/srirams6/py-threadpool.git#egg=SimplePool
From source
Clone from Github.
Execute python setup.py install
Usage
Basic usage is shown here.
import SimplePool
# Function to be executed.
def printer(x, y, testx=None, testy=None):
print x, y, testx, testy
print "Done"
t = SimplePool.ThreadPool()
# Adding the same function 100 times
for i in range(100):
args = ('formalx', 'formaly')
kwargs = {'testx': 'keywordx', 'testy': 'keywordy'}
j = SimplePool.ThreadJob(printer, args, kwargs) # Create a thread_job object.
t.add_job(j)
t.start()
t.finish()
Contribute
If you want to add features, or improve anything feel free to send a pull request. If you have any issues, open an issue.
Todo
Putting results in result_q and handling the results
Handling exceptions in the function call
Metadata
Release files for SimplePool 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| SimplePool-0.1.tar.gz | 36.4 kB | Without provenance | Details |
Release files / SimplePool-0.1.tar.gz
| Download URL | SimplePool-0.1.tar.gz |
|---|---|
| Size | 36.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2ee0993a860c6048611b3e1f3bc6734a77b863df4b456555b90176fc1671bdb
|
|
BLAKE2b-256 checksum How to use checksums |
5f051caf229f0baccbbc01978b4c77269e602125815403a7fb1079e63b83be05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SimplePool 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.