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
Install
$ pip install myloginpath
Example
Create login path file with mysql_config_editor
command:
$ mysql_config_editor set --login-path=client --host=localhost --user=localuser --password
Enter password: <Type password here>
Use it from Python:
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.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for myloginpath-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf05c8b4cd3b75d370db8d43c836c61ff0e34bf5567a44d4ed676aa1e2cfa92 |
|
MD5 | 5a142544fa01e4014b56d298d56111f0 |
|
BLAKE2b-256 | 660e22a9fa051edbce3342e01488adcf32fa55873522977dbbf2539542d46c51 |