Skip to main content

Python module for running tasks within a limited amount of threads

Project description

Descriptions can be found in the markdown README.

New features:

V.0.2.0
  • start_thread now returns the Thread object

V.0.3.0
  • Added ThreadStarter Class. This class can run a separate thread for the sole purpose of starting threads with MaxThreads

V.0.4.0
  • Removed ThreadStarter Class because the new way start_thread is written makes this class obsolete (it no longer blocks while waiting for a thread to become available).

V.0.5.0
  • Added the ability to prioritize tasks started by start_thread

V.0.5.3
  • Changed how the stop function works also added a start function that can be called after stop to restart

V.0.5.8
  • The priority variable can now be a tuple

V.0.5.11
  • Changed name of start_thread to the more accurate add_task (the old name can still be used)

V.1.0.0
  • Fixed bug in the stop function where it wouldn’t work if the priority variable in previously added tasks still in the queue was anything else than an integer.

  • Fixed bug in the empty_queue where it would empty the queue then block indefinitely.

  • Removed start function because tasks are now deleted in the stop function.

  • Added get_task_queue_count function

V.1.0.1
  • Fixed bug where a new thread could close before being added to the threads list

  • Fixed bug where add_task wouldn’t start a new thread when it should

Project details


Download files

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

Source Distribution

maxthreads-1.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maxthreads-1.0.1-py3.5.egg (8.2 kB view details)

Uploaded Egg

File details

Details for the file maxthreads-1.0.1.tar.gz.

File metadata

  • Download URL: maxthreads-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for maxthreads-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cca64e24cd74b8d7c76f5d3c66897f43dbede2bda45cbc46737ce95913dc644d
MD5 54a18c1fe19b3311b12585fad32ee8a6
BLAKE2b-256 1eb483d16524d4fae94c394ae0a042b9221f70fb9da515419671946c48563077

See more details on using hashes here.

File details

Details for the file maxthreads-1.0.1-py3.5.egg.

File metadata

File hashes

Hashes for maxthreads-1.0.1-py3.5.egg
Algorithm Hash digest
SHA256 9bc9752559d3b4acec8178b2ed68598d4c8bfd4ecc4e4868b0a4b4b9e066528a
MD5 340f331f92736b1cb2b445d2d901dd79
BLAKE2b-256 1887410234ca326f43fcf0dde4dbf74543fa59cb69f135360a952a959c91c5a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page