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.4rc1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for myloginpath-0.0.4rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2007cdf61883f06be1bf1cd129d163f5710e8c8f48855625cd3f020803aee87b |
|
MD5 | b334da235424d960d17ff960e207d00a |
|
BLAKE2b-256 | 4a90717d0b6f0265c4a87513ab358cc0bba98a0d25f209cc6229226e234c12d3 |