MySQL login path file reader
Project description
MySQL's login path file reader
Decrypt and parse MySQL's login path file.
See also: https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html
Example
$ mysql_config_editor set --login-path=client --host=localhost --user=localuser --password
Enter password: <Type password here>
import myloginpath, MySQLdb
conf = myloginpath.parse('client')
print(conf) # {'host': 'localhost', 'user': 'localuser', 'password': 'secretstring'}
conn = MySQLdb.connect(**conf, db="myapp")
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
myloginpath-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for myloginpath-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1150cec7df3b421adee0cc239499a3f6dbbe41574e2ca7584ec7f5b277cd8c32 |
|
MD5 | 8501ec66c3eeffc660d022b5386524a7 |
|
BLAKE2b-256 | 07be0c27d7b8f331fd0e654322f2148570d378327363e9a4eed290a459de65ab |