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_HOSTMYSQL_PORTMYSQL_USERMYSQL_PASSWORDMYSQL_DATABASEMYSQL_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymysql_dist-0.1.0.tar.gz.
File metadata
- Download URL: pymysql_dist-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67e523053a111e3a4c93e732e944fa40bdc019f7d060380ecff9976a226da807
|
|
| MD5 |
7515bfcee8886257f9552fa14e7be7dc
|
|
| BLAKE2b-256 |
1bf7967305e53e38eec4a8f6a135fc3ec2b88046ea293e1ec59523fb11b2f502
|
Provenance
The following attestation bundles were made for pymysql_dist-0.1.0.tar.gz:
Publisher:
publish.yml on Leevandr/pymysql-dist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymysql_dist-0.1.0.tar.gz -
Subject digest:
67e523053a111e3a4c93e732e944fa40bdc019f7d060380ecff9976a226da807 - Sigstore transparency entry: 1643282210
- Sigstore integration time:
-
Permalink:
Leevandr/pymysql-dist@deaee1bd390e5dfc293eb19838f81425a7c03c44 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Leevandr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@deaee1bd390e5dfc293eb19838f81425a7c03c44 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymysql_dist-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pymysql_dist-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70b7876a468a2edce64a084968b9493b53f49f3edeb1f76a95c9b661eba37e70
|
|
| MD5 |
b16d48d5dacc88243385499396d63737
|
|
| BLAKE2b-256 |
84c78c4fc889f2dc9ee6e29942aa9e7207eef1d7fce1b7b15bcfc35883f9ff7c
|
Provenance
The following attestation bundles were made for pymysql_dist-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Leevandr/pymysql-dist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymysql_dist-0.1.0-py3-none-any.whl -
Subject digest:
70b7876a468a2edce64a084968b9493b53f49f3edeb1f76a95c9b661eba37e70 - Sigstore transparency entry: 1643282251
- Sigstore integration time:
-
Permalink:
Leevandr/pymysql-dist@deaee1bd390e5dfc293eb19838f81425a7c03c44 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Leevandr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@deaee1bd390e5dfc293eb19838f81425a7c03c44 -
Trigger Event:
push
-
Statement type: