The Python package for (pear)allelizing your tasks across multiple CPU threads

Python threading allows you to have different parts of your program run concurrently and can simplify your design. If you’ve got little experience in Python but want to speed up your program using threads, then this package is for you!

Contribute
from pearpy.pear import Pear

# First function to be parallelized
def t1(num1, num2):
    print('t1: ', num1 + num2)

# Second function to be paralellized
def t2(num):
    print('t2: ', num)

# Create pear object, add threads, and run
pear = Pear()
pear.add_thread(t1, [4, 5])
pear.add_thread(t2, 4)
pear.run()

Reasons Why you will need PearPy

Dead Simple
Highly Intuitive
Minimized system resource usage
Faster Code
Race Condition Handling
Program responsiveness