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.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for myloginpath-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f764b5b54eb795f5b09540adb35d19276a64ace9617606e4a15bf5e99bd82bb0 |
|
MD5 | 1962b3747143677619a626eb20342bb9 |
|
BLAKE2b-256 | e1b1311d726f15a89eec992a26a031f6a54be635be24ab336f11b712d41b7084 |