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")
Metadata
Release files for myloginpath 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| myloginpath-0.0.4.tar.gz | 4.6 kB | Without provenance | Details for myloginpath-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myloginpath-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for myloginpath-0.0.4-py3-none-any.whl |
Total release size: 9.6 kB
Release files / myloginpath-0.0.4.tar.gz
| Download URL | myloginpath-0.0.4.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c44b8d11e8f35a02eeac4b88bf244203c09cc496bfa19ce99a79561c038f9d09
|
|
BLAKE2b-256 checksum How to use checksums |
21309acf030d204770c1134e130e8eb1293ce5ecd6a72046aaca68fbd76ead00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / myloginpath-0.0.4-py3-none-any.whl
| Download URL | myloginpath-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d99d2e517b6c3a575032bcaa66f34f4bdea08116c97cf6a4977596af2498277
|
|
BLAKE2b-256 checksum How to use checksums |
2f5b9856543a055c0795f4441c40d143f66a5b04815415391ab4f2cf41a7a4d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for myloginpath 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.