Recent Releases of https://github.com/brianpugh/lox
https://github.com/brianpugh/lox - v0.13.0
What's Changed
- remove sphinxrtdtheme from dependencies. by @BrianPugh in https://github.com/BrianPugh/lox/pull/304
Full Changelog: https://github.com/BrianPugh/lox/compare/v0.12.0...v0.13.0
- Python
Published by BrianPugh about 1 year ago
https://github.com/brianpugh/lox - v0.12.0
What's Changed
- Add type hints to thread & process by @BrianPugh in https://github.com/BrianPugh/lox/pull/302
Full Changelog: https://github.com/BrianPugh/lox/compare/v0.11.0...v0.12.0
- Python
Published by BrianPugh almost 2 years ago
https://github.com/brianpugh/lox -
- Set number of workers to 0 (in thread execution) if the environment variable
LOX_DEBUGis set to a true-like value (true,1, etc.). Makes it easier to set breakpoints in multithreaded code without having to manually edit the decorator.
- Python
Published by BrianPugh about 4 years ago
https://github.com/brianpugh/lox -
- Remove dependency pinning.
- Allow
@lox.thread(0). This will execute scatter calls in parent thread. Useful for debugging breakpoints in parallelized code.
- Python
Published by BrianPugh over 4 years ago
https://github.com/brianpugh/lox - tqdm support
Both thread and process decorators now support progress-bar support for the gather call via the package tqdm.
- Can be a bool:
my_func.gather(tqdm=True)
- Can be a
tqdmobject::
from tqdm import tqdm
pbar = tqdm(total=100)
for _ in range(100):
my_func.scatter()
my_func.gather(tqdm=pbar)
- Python
Published by BrianPugh over 5 years ago
https://github.com/brianpugh/lox - Worker Refactor
Complete rework of workers + Fix memory leaks
Drop support for python3.5
Drop support for chaining in favor of simpler codebase
- Python
Published by BrianPugh almost 6 years ago
https://github.com/brianpugh/lox -
New Object:
lox.Announcement. Allows a one-to-many thread queue with backlog support so that late subscribers can still get all (or most recent) announcements before they subscribed.New Feature:
lox.threadscattercalls can now be chained together.scatternow returns anintsubclass that contains metadata to allow chaining. Each scatter call can have a maximum of 1 previousscatterresult.Documentation updates, theming, and logos
- Python
Published by BrianPugh almost 7 years ago
https://github.com/brianpugh/lox -
- Various bug fixes introduced by the Method Adapter
- Python
Published by BrianPugh almost 7 years ago
https://github.com/brianpugh/lox -
- Semi-breaking change: lox.thread and lox.process now automatically pass the object instance when decorating a method. This was the original intended usage.
- Python
Published by BrianPugh almost 7 years ago
https://github.com/brianpugh/lox -
- Print traceback in red when a thread crashes
- Python
Published by BrianPugh almost 7 years ago
https://github.com/brianpugh/lox -
Fix bug where thread in scatter of lox.thread double releases on empty queue
- Python
Published by BrianPugh almost 7 years ago
https://github.com/brianpugh/lox - Multiprocessing
Multiprocessing decorator. lox.pool renamed to lox.thread
Substantial pytest bug fixes
Documentation examples
timeout for RWLock
- Python
Published by BrianPugh about 7 years ago
https://github.com/brianpugh/lox - QLock
QLock- Like athreading.Lock, butacquire()is guarenteed to be fulfilled in the order requestedDocumentation syntax fixes
- Python
Published by BrianPugh about 7 years ago
https://github.com/brianpugh/lox - Initial Release
First Release
Features:
pool- function decorator to automatically multithread a function. Invoke viascatterand block to gather results (returns list of results in the order ofscattercalls) viagather()LightSwitch- A counter that acquires aLockwhen incrementing from zero, and releases when decremented to zero.RWLock- Lock for a Many-Reader-Single-Writer scenario.IndexSemaphore- BoundedSemaphore that returns an index that was acquired.
- Python
Published by BrianPugh about 7 years ago