Threading and Multiprocessing for every project.
Project description
lox
Threading made easy.
Free software: MIT license
Documentation: https://lox.readthedocs.io.
Installation
pip install git+https://github.com/BrianPugh/lox#egg=lox
Features
Powerful, intuitive multithreading in just 2 additional lines of code
Advanced thread synchronization, communication, and resource management tools
Examples
Easy Multithreading
>>> import lox >>> @lox.pool(3) # Maximum of 3 concurrent threads >>> def multiply(a,b): >>> return a*b >>> multiply(3,4) # Function works as normal 12 >>> xs = [1,2,3,4,5,] >>> ys = [6,7,7,8,9,] >>> [multiply.scatter(x,y) for x,y in zip(xs,ys)] >>> multiply.gather() [ 6, 14, 21, 32, 45 ]
Contributing
Install the library in editable mode:
pip3 install -e .
All new features must have unit tests.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.1 (2019-05-24)
CICD test
0.1.0 (2019-05-24)
First release on PyPI.
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
Built Distribution
File details
Details for the file lox-0.1.1.tar.gz
.
File metadata
- Download URL: lox-0.1.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afa54a181a2ea7b888cc114bf1f86ab4112ce5b194805bc22bddc922d8caa313 |
|
MD5 | acf280daafe4112c074d7e257e4b47a1 |
|
BLAKE2b-256 | fdb1e62ae8d0a8e0f3a56c2da6b41a9dc74b76fa4a5f765758cc249a45d83595 |
File details
Details for the file lox-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lox-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c80b1e05f40c40d38bce25ed995c0dff3e7212db8b997c6031dfb25366fa06 |
|
MD5 | 93142fb927d29a250aac6c64afa31c34 |
|
BLAKE2b-256 | ac89cd05471c93ac34c1c082d6cef899a08f04a56b3384422dc6b4d30cb4f849 |