Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lazy_mysql-0.1.5.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

lazy_mysql-0.1.5-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file lazy_mysql-0.1.5.tar.gz.

File metadata

  • Download URL: lazy_mysql-0.1.5.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

Hashes for lazy_mysql-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0e015d2e92429c7bc76892bbe98761d0a8b4364d771de09f05b4674abb095ecf
MD5 51d0842d490af5e41b833fdae81f50ea
BLAKE2b-256 119530f7b00eecfef348585f4e190a96d0d26c8e85c5b2d51e47618e07babd93

See more details on using hashes here.

File details

Details for the file lazy_mysql-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: lazy_mysql-0.1.5-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

Hashes for lazy_mysql-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c87f04cc9a12b0c1227e193a643f089d8c96decec05d1b118e6ab935ad6d3b
MD5 878ec74268f8d23df4613b98ded135e4
BLAKE2b-256 f30a96ed801e8d3bac518781b53fb2c7b9d18c441c7fbd2b72994ad919c4b92e

See more details on using hashes here.

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