A lazy MySQL client for Python.
Project description
lazy_mysql
A lightweight Python library for simplified MySQL database operations.
Features
- Unified SQL execution interface
- Export table structure to Markdown format
- Query result formatting
- Simplified insert, update, and select operations
- Transaction support
Install / upgrade / uninstall
pip install lazy-mysql
pip install --upgrade lazy-mysql
pip uninstall lazy-mysql
Quick Start
from lazy_mysql.executor import SQLExecutor
# Initialize connection
config = {
'host': 'your_mysql_host',
'user': 'your_username',
'password': 'your_password',
'database': 'your_database'
}
executor = SQLExecutor(config)
# Query example
result = executor.select('your_table', ['column1', 'column2'])
print(result)
# Insert example
executor.insert('your_table', {'column1': 'value1', 'column2': 'value2'}, commit=True)
Requirements
- mysql-connector-python>=9.4.0
- pandas>=2.3.1
Note: Compatibility with versions below these requirements has not been verified.
PyPI
Project available on PyPI: https://pypi.org/project/lazy-mysql/
License
This project is licensed under the MIT License.
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 lazy_mysql-0.1.4.tar.gz.
File metadata
- Download URL: lazy_mysql-0.1.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19f73a16c072a57d0517916e53d9a29b3e71043e9f62917d7028c356c47e9358
|
|
| MD5 |
bd1c03a04472bf3beb8213657087f3a2
|
|
| BLAKE2b-256 |
f11e26ef597aa8db8a659642ccc01f6c25107e98e65374c9ccbc26803e30c0fb
|
File details
Details for the file lazy_mysql-0.1.4-py3-none-any.whl.
File metadata
- Download URL: lazy_mysql-0.1.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23f1e3396aca3f7ffd922c37604595dbde424097c86b6e665dd7d0ad4082ba74
|
|
| MD5 |
5437792c6554f04ead9ce19cfab2e745
|
|
| BLAKE2b-256 |
40ba7ddafd2db41f13a86b7375c1ae43db9d2c7f566aab7e9afbb0618ee5b711
|