Mysql connection parameters defined in a text file, reads the parameter file and return the connection parameter’s dict
example:
First, you must have a parameter file, which reads as follows:
# mysql Connection parameters
host=localhost
password=password
user=userid
database=dbname
Then,you can use this package in your python program
>>>import getMysqlConnPara
>>>getMysqlConnPara.getMysqlConnPara(‘/home/user/conn.conf’)
{‘host’: ‘localhost’, ‘password’: ‘password’, ‘user’: ‘userid’, ‘database’: ‘dbname’}
Release files for getMysqlConnPara 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| getMysqlConnPara-2.0.0.tar.gz | 1.5 kB | Details |
Release files / getMysqlConnPara-2.0.0.tar.gz
| Download URL | getMysqlConnPara-2.0.0.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7118e817cf4d6efeaeb79ca288144925e6cddce1ab794336e15888e5a57fc7dd
|
|
BLAKE2b-256 checksum How to use checksums |
5616f65ffdfa6c536f4dc744a716e6e963bdd0b18a53ab42af8ea8d8d53ce6b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |