Skip to main content

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>

Release files for backpy 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for backpy 0.0.0
File Interpreter ABI Platform
backpy-0.0.0-py3-none-any.whl Python 3 none any Details

Release files / backpy-0.0.0-py3-none-any.whl

Download URL backpy-0.0.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13a4d9f4fef04313c2b20d86c1f7c49837fd6f1f30ca34d538a5e7ff42a96293
BLAKE2b-256 checksum
How to use checksums
196b425beacd5f8bd4ee82392010cebe778da70e34b9195e2e00035ee1371872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page