Intuitive multi-threaded task processing in python.
Project description
pylateral
Intuitive multi-threaded task processing in python.
Example
import urllib.request
@pylateral.task
def request_and_print(url):
response = urllib.request.urlopen(url)
print(response.read())
URLS = [
"https://www.nytimes.com/",
"https://www.cnn.com/",
"https://europe.wsj.com/",
"https://www.bbc.co.uk/",
"https://some-made-up-domain.com/",
]
with pylateral.task_pool():
for url in URLS:
request_and_print(url)
print("Complete!")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylateral-1.0.0.tar.gz
(8.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pylateral-1.0.0-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file pylateral-1.0.0.tar.gz.
File metadata
- Download URL: pylateral-1.0.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b235d8dda7f334ffebd658468d5f641844397706b9d8cae9f9771be0368ef31a
|
|
| MD5 |
334401d2b5ab43ceb171ff21c54fc5f9
|
|
| BLAKE2b-256 |
fad638ce2937cb234ec36c4864955cb74666b70ccfa293127b74bcee03f4bcd3
|
File details
Details for the file pylateral-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pylateral-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357f321e9229544ef93f0a4ccd4fce218b3a472c52ae99250df34ca2b2252d23
|
|
| MD5 |
bdc834387d94b0ff83064680c0b93a20
|
|
| BLAKE2b-256 |
aa11ed8c5b09cca637e1f4dd17a05325b877b93577bcdd2955b60bdeb38df241
|