Skip to main content

Unofficial helper utilities for PyMySQL-based applications.

Project description

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.

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

pymysql_dist-0.1.2.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymysql_dist-0.1.2-py3-none-any.whl (5.5 MB view details)

Uploaded Python 3

File details

Details for the file pymysql_dist-0.1.2.tar.gz.

File metadata

  • Download URL: pymysql_dist-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymysql_dist-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bbd4d6e110e65bc8ef25b22a3a1388451c9a301fe9721d8722b836c446f7027c
MD5 de799f992dcaabd52b4222263fbc47e9
BLAKE2b-256 f7d9fc2331aa84de4945e9f26cca17ff2c5bcef0d91774713ee746a38351a048

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymysql_dist-0.1.2.tar.gz:

Publisher: publish.yml on Leevandr/pymysql-dist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymysql_dist-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pymysql_dist-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymysql_dist-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa4809fdf5e6481cd839df95348d85d30eedfa5922876951827a3f3824fa8c36
MD5 d10088dde356f443e3ab78278fc80700
BLAKE2b-256 957705bc2275d8d5434a0b26840e7d2a79fdb5c2eb943ca92b9324f2e876ba06

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymysql_dist-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Leevandr/pymysql-dist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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