python-pymysql
CommunitySecure PyMySQL connections for Python apps.
Authorthe-perfect-developer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
PyMySQL best practices guide helps developers build reliable, secure MySQL connections in Python by standardizing connection handling, cursor usage, and error management.
Core Features & Use Cases
- Establish robust connections with proper charset, timeouts, and context management
- Use parameterized queries to prevent SQL injection and support safe data handling
- Choose appropriate cursor types and fetch strategies for both small and large result sets
- Implement transactions, error handling, and cleanup patterns in real-world apps
- Use configuration from my.cnf and environment variables to avoid hard-coded credentials
Quick Start
Connect to a MySQL database with pymysql.connect by supplying host, user, password, and database, then run a simple query to verify connectivity.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-pymysql Download link: https://github.com/the-perfect-developer/the-perfect-opencode/archive/main.zip#python-pymysql Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.