Socket
Socket
Sign inDemoInstall

threadmanager

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    threadmanager

A thread manager for Python programs


Maintainers
1

Readme

threadmanager

A thread manager for Python programs

It provides:

  • Centralization of starting and monitoring threads
  • State management for the functions in the threads
  • Logging for exceptions and excessive runtime

Original use case:

  • GUI program that calls back-end functions for IO-bound work
  • GUI has a cancel button that should always work, so:
    • the GUI mainloop should not be blocked
    • the called functions should intermittently check if the user has pressed the cancel button
  • Avoid running new work threads when the user wants to cancel
  • Allow running callback functions when the program starts working or goes idle.
    • e.g. update a status bar with certain text

Installation:

  • pip install threadmanager

Tested for Python >=3.6.5 on Linux (Ubuntu) and Windows 7/10

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc