AsyncioPySide6
Empower Qt PySide6 developers with seamless async/await asynchronous programming capabilities
Installation:
pip install AsyncioPySide6
Example:
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QLabel
from AsyncioPySide6 import AsyncioPySide6
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.init_ui()
# Execute an asynchronous task
AsyncioPySide6.runTask(self.calculate_async(20))
def init_ui(self):
"""Initialize GUI"""
self.label = QLabel("Calculating...")
self.setCentralWidget(self.label)
async def calculate_async(self, n:int):
"""Asynchronous method that does a time-expensive calculation"""
# Give Qt sometime to show the window
await asyncio.sleep(0.5)
# Calculate
sum = 0
for i in range(n):
# Create some delay
await asyncio.sleep(0.1)
sum = sum + i
self.label.setText(f"SUM([0..{i}]) = {sum}")
if __name__ == "__main__":
app = QApplication(sys.argv)
with AsyncioPySide6.use_asyncio():
main_window = MainWindow()
main_window.show()
app.exec()
Metadata
Release files for AsyncioPySide6 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| AsyncioPySide6-0.3.2.tar.gz | 4.6 kB | Without provenance | Details for AsyncioPySide6-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AsyncioPySide6-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for AsyncioPySide6-0.3.2-py3-none-any.whl |
Total release size: 13.0 kB
Release files / AsyncioPySide6-0.3.2.tar.gz
| Download URL | AsyncioPySide6-0.3.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eac96d80bd9aace6787fba50e5a91e1bc5cf46bc0209c2d4d34e6cc0e46eaae
|
|
BLAKE2b-256 checksum How to use checksums |
06eabf8fa58596b4a0fb025aabc5ac8b90775527c9fd3ce176658ead861bc223
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / AsyncioPySide6-0.3.2-py3-none-any.whl
| Download URL | AsyncioPySide6-0.3.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
504d6e114250a04503b38ef19921912f2fc54992bdd4a5263428c31c972dc4a1
|
|
BLAKE2b-256 checksum How to use checksums |
a48bc8edd217c02dbe17d0eaa2cd2cf7d107d69c11b144babd4aae023cb6fb03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for AsyncioPySide6 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.