Skip to main content

A module which helps you use your MYSQL database over local network by connecting another devices.

Project description

mysqlonsockets

pip install mysqlonsockets

Developed by Vedant Barhate (c) 2022

You need basic knowledge of Python And MySQL to use this package.

This package is useful when you want to use your MySQL database from one device on another devices.

Example

Creating A Server

from mysqlonsockets import Server

server = Server(server_host='<IPv4 addr>', server_port=9999, db_host='localhost', db_user='root', db_pswd='<user-pswd>', db_name='<database name>')

server.startServer()

# When You Are Done

server.stopServer()

Creating A Client

from mysqlonsockets import Client

client = Client(host='<IPv4 addr of device to join>', port=9999)

client.connectClient()

data = askQuery('<SQL-Query>')

print(data)

# When You Are Done

client.closeClient()

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

mysqlonsockets-0.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

mysqlonsockets-0.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page