Skip to main content

Generic worker for QThreadpools

Project description

qt Worker

A generic worker class for QThreadpool use.

The following snippet shows the basic usecase

from qtworker import Worker

self.pool = QThreadpool()

worker = Worker(function, *args, **kwargs)
worker.signals.started.connect(self.handle_start)
worker.signals.result.connect(self.handle_result)
worker.signals.error.connect(self.handle_error)
worker.signals.finished.connect(self.handle_cleanup)
self.pool.start(worker)

Todo: with full context

setup

install the package via pip:

pip install qtworker

The full documentation can be found under qtworker documentation The source code can be found under qtworker repository

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

qtworker-1.0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file qtworker-1.0.2.tar.gz.

File metadata

  • Download URL: qtworker-1.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for qtworker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cc3954afc4be547765fe35ee5faa3afaa7760d768038c64b1c09e164a2357593
MD5 80846523ca53118225d301fc82eb7735
BLAKE2b-256 e3fe15cc8b0d29b4d426076602842fb692172e560d769c2dec17a4a67591f195

See more details on using hashes here.

Supported by

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