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.1.tar.gz (4.8 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.1-py3-none-any.whl (4.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymysql_dist-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 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.1.tar.gz
Algorithm Hash digest
SHA256 353af2b2f8b82533ff6f0fb261fd15f16c41898bb841213630d780ba8eb912d3
MD5 afaa1e58fff7524c39cba00b1cd565a1
BLAKE2b-256 9b456b5c1692b0a827fcaf6ff92d5fe8937739ec3624ffb201831e7f76d2565a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymysql_dist-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: pymysql_dist-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 366e70be18d6bc51350875af65985be1ba3d1d7f9f97932ff38c31c423feebb9
MD5 41e07d49b785331b565178c1eec1fdd3
BLAKE2b-256 acb3540a441e0a6eee38413883a151bda4d7e7cc2d025de1d88b3019114b5775

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymysql_dist-0.1.1-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