Skip to main content

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)

Source distribution for myloginpath 0.0.4
File Size Uploaded
myloginpath-0.0.4.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for myloginpath 0.0.4
File Interpreter ABI Platform
myloginpath-0.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page