Threading and Multiprocessing for every project.
Project description
lox
Threading made easy.
Free software: MIT license
Documentation: https://lox.readthedocs.io.
Installation
pip install lox
Features
Powerful, intuitive multithreading in just 2 additional lines of code
Advanced thread synchronization, communication, and resource management tools
Usage
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 ]
History
0.2.1 (2019-05-25)
Fix IndexSemaphore context manager
0.2.0 (2019-05-24)
Added QLock
Documentation syntax fixes
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
lox-0.2.1.tar.gz
(12.2 kB
view details)
Built Distribution
File details
Details for the file lox-0.2.1.tar.gz
.
File metadata
- Download URL: lox-0.2.1.tar.gz
- Upload date:
- Size: 12.2 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 | fd9b9379b413af6766581e3ed84c284e834a3d2071e456e89800cd58dff4919a |
|
MD5 | 573e20faf6b6afe703e38a44ddc040dc |
|
BLAKE2b-256 | 7f60e24599a2e19a387692ed844c80893ea07ab1a82b883fa13d043ae9d35caa |
File details
Details for the file lox-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lox-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 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 | 09dd6ebbb98a385f4aca37faba3030e144245e647d86dc889ca84b1281afac5a |
|
MD5 | 30154982e5b7085e5892763a9220fd48 |
|
BLAKE2b-256 | 85e67ae8ce3e177064456c266b6a8bb07825161043bae426f97296525b2487c9 |