Skip to main content

pyqt-mysql-tools

Helpers for building PyQt applications that talk to MySQL through PyMySQL.

Install for PyQt6:

pip install "pyqt-mysql-tools[pyqt6]"

Install for PyQt5:

pip install "pyqt-mysql-tools[pyqt5]"

Use it from Python as pyqt_mysql_tools:

from pyqt_mysql_tools import ConnectionConfig, MySqlClient

config = ConnectionConfig(
    host="localhost",
    user="root",
    password="password",
    database="app_db",
)

client = MySqlClient(config)
rows = client.fetch_all("select id, name from users where active = %s", (True,))

Run a query from a Qt worker:

from pyqt_mysql_tools import ConnectionConfig, QueryWorker

worker = QueryWorker(
    ConnectionConfig.from_env(),
    "select id, name from users limit 10",
)
worker.finished.connect(print)
worker.failed.connect(lambda exc: print(f"Query failed: {exc}"))

Environment variables supported by ConnectionConfig.from_env():

  • MYSQL_HOST
  • MYSQL_PORT
  • MYSQL_USER
  • MYSQL_PASSWORD
  • MYSQL_DATABASE
  • MYSQL_CHARSET

Metadata

Release files for pyqt-mysql-tools 0.1.1

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

Source distribution (sdist)

Source distribution for pyqt-mysql-tools 0.1.1
File Size Uploaded Provenance Actions
pyqt_mysql_tools-0.1.1.tar.gz 17.0 kB Without provenance Details for pyqt_mysql_tools-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyqt-mysql-tools 0.1.1
File Interpreter ABI Platform Actions
pyqt_mysql_tools-0.1.1-py3-none-any.whl Python 3 none any Details for pyqt_mysql_tools-0.1.1-py3-none-any.whl

Total release size: 29.1 kB

Release files / pyqt_mysql_tools-0.1.1.tar.gz

Download URL pyqt_mysql_tools-0.1.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0ed863528fd54069aa3c1be20d207047d9f8a2e9638d8535827430364f4fd108
BLAKE2b-256 checksum
How to use checksums
895b7fedff3df764f7d9bc7bb7b00ef546c62d98ca87b95dff82b0949d0ed4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / pyqt_mysql_tools-0.1.1-py3-none-any.whl

Download URL pyqt_mysql_tools-0.1.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
668b611e795b3b728803eb651b113fdc4f3f23f4d4b26b2994911472ea5b330b
BLAKE2b-256 checksum
How to use checksums
e9bada6a0192d478ba6d9a568975eea4553a0eeb83f7a16a2ff365549e73aeb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for pyqt-mysql-tools 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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