semvec/pypi-packages huggingface dataset:
backpy 0.0.0
A Python interface to interact with gmail.


<p>
A Python interface to run functions in the background. <br />
<br />
Functions:
<ul>
    <li>background - run a function in the background</li>
</ul>
<br />
Usage: <br /></p>
<pre>    >>> import backpy
    >>> def myFunction(text):
            while 1:
                print(text)

    >>> thread = backpy.background(target = myFunction, args = ("hello!")) # run
    >>> # the function myFunction in the background with args ("hello!")
    >>> thread._stop() # stop the thread.
    >>> def myEndFunction(data):
            print('Finished', data)

    >>> thread = backpy.background(mode = 'basic+finish',
                                   target = myFunction, args = ("hello!"),
                                   finish = myEndFunction, fargs = ("data"))
    >>> thread._stop() # stop the thread.  </pre>