Skip to main content

A local client for connecting and working with MySQL databases

Project description

MySQL Client

This Python module provides a client for interacting with MySQL databases, allowing users to perform various operations such as executing queries, uploading data from files, fetching data, and more.

Installation

To use the MySQL Client, you need to have Python installed. You can install the module via pip:

pip install shipyard-mysql

Usage

from mysql_client import MySqlClient

# Initialize the MySQL client
client = MySqlClient(username='your_username', pwd='your_password', host='localhost', database='your_database')

# Execute a query
query = "SELECT * FROM your_table"
client.execute_query(query)

# Upload data from a file
client.upload(file='data.csv', table_name='your_table')

# Fetch data
result_df = client.fetch(query)

# Close the connection
client.close()

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

shipyard_mysql-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

shipyard_mysql-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file shipyard_mysql-0.1.0.tar.gz.

File metadata

  • Download URL: shipyard_mysql-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Darwin/23.2.0

File hashes

Hashes for shipyard_mysql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0000bd640692f9df3bd98e1249eff041b6caaa3c48f6cd632022bcc83e28f994
MD5 9e5ee722c8a946da525c06933708c245
BLAKE2b-256 2816f0cb8b10fc16b1a5a00415b57c54fe161ce6e5f7e218e1a75feedc03257c

See more details on using hashes here.

File details

Details for the file shipyard_mysql-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shipyard_mysql-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Darwin/23.2.0

File hashes

Hashes for shipyard_mysql-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc98c2ae27728a2baeaa496500c0c8081737d1d62e913bbbf1cb3aeeef29cabe
MD5 84f830ee7051f301dffd11397ceb0c9e
BLAKE2b-256 01d7873a9e819f640915e32279f3710b0bd80532188be8e638aa57a1c22135eb

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