Skip to main content

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

Release files for qtworker 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qtworker 1.0.2
File Size Uploaded
qtworker-1.0.2.tar.gz 3.2 kB Details

Release files / qtworker-1.0.2.tar.gz

Download URL qtworker-1.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cc3954afc4be547765fe35ee5faa3afaa7760d768038c64b1c09e164a2357593
BLAKE2b-256 checksum
How to use checksums
e3fe15cc8b0d29b4d426076602842fb692172e560d769c2dec17a4a67591f195
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page