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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file myloginpath-0.0.4.tar.gz.
File metadata
- Download URL: myloginpath-0.0.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c44b8d11e8f35a02eeac4b88bf244203c09cc496bfa19ce99a79561c038f9d09
|
|
| MD5 |
d25c961057608473ab1b259cde7f718c
|
|
| BLAKE2b-256 |
21309acf030d204770c1134e130e8eb1293ce5ecd6a72046aaca68fbd76ead00
|
File details
Details for the file myloginpath-0.0.4-py3-none-any.whl.
File metadata
- Download URL: myloginpath-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d99d2e517b6c3a575032bcaa66f34f4bdea08116c97cf6a4977596af2498277
|
|
| MD5 |
70be2037c2896a26675f2e3419af0415
|
|
| BLAKE2b-256 |
2f5b9856543a055c0795f4441c40d143f66a5b04815415391ab4f2cf41a7a4d2
|