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
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 mysqlonsockets-0.0.1.tar.gz.
File metadata
- Download URL: mysqlonsockets-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6367f95cce2da91c2f4af4a49e72ebe37efc7c5ccdc1427153c28b6ebdd8dac5
|
|
| MD5 |
52c788904e195d29d03a955fe1b2a498
|
|
| BLAKE2b-256 |
f0f1a42b582e635d14e6b50d2a5a44ce54c4dcf5e49199c9f08215bfee1d4936
|
File details
Details for the file mysqlonsockets-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mysqlonsockets-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b780d4469f2b56c727ec221bb3eb1abe9e216b84bc1fa78568c3c447c4c0b41f
|
|
| MD5 |
50f8e2b271b2f3eb9b2d555978cccbc9
|
|
| BLAKE2b-256 |
ba70e6e43ef9642ed7d8ea5962270441455866887511129db045ecccfa1c076c
|