It does what it says it does.
Project description
This module makes it stupidly simple to run things in the background of your application, be it a CLI app, or a web app.
Basic Usage
import time import background @background.task def work(): # Do something expensive here. time.sleep(10) for _ in range(100): work()
Advanced Usage
import background # Use 40 background threads. background.n = 40 @background.task def work(): import time time.sleep(10) @background.callback def work_callback(future): print(future) for _ in range(100): work()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
background-0.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for background-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 510482ab457a6e60d87491aaddf944f900eb4312c8934397ceb1d6c0f765e9cb |
|
MD5 | c200d77f83b51637ee7bafaf9b6bad7c |
|
BLAKE2b-256 | 86be9de7386afe732d0e9a3972741b712a100bb706bc2fc7e0526f558739da93 |