Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Task DB

Project Description

TaskDB runs common methods in a single thread


Threads sometimes need to run compute-heavy or network-heavy methods that are expected to return a similar output. Webcrawlers and bots acting on those crawlers may wish to decrease network load by limiting requests to a single thread. TaskDB allows multiple threads to ask for the result of a common function without requiring each thread to execute the function.


Install this package through pip:

$ pip install taskdb

Basic Usage

from taskdb import TaskDB

def some_intesive_method(some_argument, some_other_argument):
    # Do something

task_db = TaskDB()
result = task_db.monitor('SOME_TASK_ID', some_intensive_method, (15, 20))

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.1 kB) Copy SHA256 Hash SHA256
Source None Nov 16, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting