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 details)
Built Distribution
File details
Details for the file myloginpath-0.0.3.tar.gz
.
File metadata
- Download URL: myloginpath-0.0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90aa77a5b1955b3633f226f7daab4558c2916f768b057998c861d6b4d8bdf119 |
|
MD5 | 4cf310325ed8a49664c49aeabda99f96 |
|
BLAKE2b-256 | 15f56a76628324358c17d43751be4d48961e9ffb4c9490d6067523618ee429d2 |
File details
Details for the file myloginpath-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: myloginpath-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f764b5b54eb795f5b09540adb35d19276a64ace9617606e4a15bf5e99bd82bb0 |
|
MD5 | 1962b3747143677619a626eb20342bb9 |
|
BLAKE2b-256 | e1b1311d726f15a89eec992a26a031f6a54be635be24ab336f11b712d41b7084 |