Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: BrianPugh/lox

v1.0.0

08 Aug 19:54

Choose a tag to compare

Breaking Changes

  • pip install lox now installs a thread-only version of Lox with zero dependencies.
  • pip install lox[multiprocessing] now installs the "full" version that uses pathos to handle multiprocessing. This is the equivalent of the previous pip install lox.

Many consumers of lox are only using the @lox.thread decorator and do not need the heavy pathos dependency. Unfortunately, due to how setuptools works, we were unable to make the dependency-less version an "extras". I.e. there's no way of doing pip install lox[slim]; "extras" can only add dependencies, they cannot remove dependencies.

Full Changelog: v0.13.0...v1.0.0

v0.13.0

06 Mar 02:29

Choose a tag to compare

What's Changed

Full Changelog: v0.12.0...v0.13.0

v0.12.0

12 Jun 23:24

Choose a tag to compare

What's Changed

Full Changelog: v0.11.0...v0.12.0

v0.11.0

07 Apr 18:20

Choose a tag to compare

  • Set number of workers to 0 (in thread execution) if the environment variable LOX_DEBUG is 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.

v0.10.0

20 Dec 20:01

Choose a tag to compare

  • Remove dependency pinning.
  • Allow @lox.thread(0). This will execute scatter calls in parent thread. Useful for debugging breakpoints in parallelized code.

tqdm support

26 Nov 01:26

Choose a tag to compare

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 tqdm object::
from tqdm import tqdm
pbar = tqdm(total=100)
for _ in range(100):
     my_func.scatter()
my_func.gather(tqdm=pbar)

Worker Refactor

21 Jul 16:35

Choose a tag to compare

  • Complete rework of workers + Fix memory leaks

  • Drop support for python3.5

  • Drop support for chaining in favor of simpler codebase

v0.5.0

02 Jul 01:59

Choose a tag to compare

  • 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.thread scatter calls can now be chained together.
    scatter now returns an int subclass that contains metadata to allow
    chaining. Each scatter call can have a maximum of 1 previous scatter result.

  • Documentation updates, theming, and logos

v0.4.2

24 Jun 04:49

Choose a tag to compare

  • Various bug fixes introduced by the Method Adapter

v0.4.0

22 Jun 17:30

Choose a tag to compare

  • Semi-breaking change: lox.thread and lox.process now automatically pass the object instance when decorating a method. This was the original intended usage.