Skip to main content

pymysql-dist

pymysql-dist is an unofficial support library for applications that use PyMySQL.

It provides small, readable helpers for connection settings, safe SQL snippets, basic CRUD operations, pagination, row normalization, and SQL script loading. The package is intentionally simple, so it can be used as a reference while building desktop or educational database applications.

This project is not affiliated with the PyMySQL project.

Installation

pip install pymysql-dist

Quick Example

from pymysql_dist import DatabaseConfig, connection, TableGateway

config = DatabaseConfig(
    host="localhost",
    user="root",
    password="",
    database="shop",
)

with connection(config) as conn:
    products = TableGateway(conn, "products")
    rows = products.all(order_by="id")

Environment Configuration

from pymysql_dist import DatabaseConfig

config = DatabaseConfig.from_env()

Default environment variables:

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

Modules

  • pymysql_dist.config - database configuration.
  • pymysql_dist.connection - connection helpers.
  • pymysql_dist.crud - small table gateway.
  • pymysql_dist.sql - SQL builders, filters, and sorting helpers.
  • pymysql_dist.schema - SQL file loading and script execution.
  • pymysql_dist.rows - row conversion helpers.
  • pymysql_dist.pagination - pagination data structures.
  • pymysql_dist.qt - lightweight table data adapters.

Metadata

Release files for pymysql-dist 0.1.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 pymysql-dist 0.1.2
File Size Uploaded Provenance Actions
pymysql_dist-0.1.2.tar.gz 5.5 MB With provenance Details for pymysql_dist-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymysql-dist 0.1.2
File Interpreter ABI Platform Actions
pymysql_dist-0.1.2-py3-none-any.whl Python 3 none any Details for pymysql_dist-0.1.2-py3-none-any.whl

Total release size: 11.1 MB

Release files / pymysql_dist-0.1.2.tar.gz

Download URL pymysql_dist-0.1.2.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
bbd4d6e110e65bc8ef25b22a3a1388451c9a301fe9721d8722b836c446f7027c
BLAKE2b-256 checksum
How to use checksums
f7d9fc2331aa84de4945e9f26cca17ff2c5bcef0d91774713ee746a38351a048
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Release files / pymysql_dist-0.1.2-py3-none-any.whl

Download URL pymysql_dist-0.1.2-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
aa4809fdf5e6481cd839df95348d85d30eedfa5922876951827a3f3824fa8c36
BLAKE2b-256 checksum
How to use checksums
957705bc2275d8d5434a0b26840e7d2a79fdb5c2eb943ca92b9324f2e876ba06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Security for pymysql-dist 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pymysql_dist-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

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.

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