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, database="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.4.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for myloginpath-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d99d2e517b6c3a575032bcaa66f34f4bdea08116c97cf6a4977596af2498277 |
|
MD5 | 70be2037c2896a26675f2e3419af0415 |
|
BLAKE2b-256 | 2f5b9856543a055c0795f4441c40d143f66a5b04815415391ab4f2cf41a7a4d2 |