Skip to main content

A Python interface to interact with gmail.

Project description

A Python interface to run functions in the background.

Functions:

  • background - run a function in the background

Usage:

    >>> 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>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

backpy-0.0.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page