GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PyMySQL/myloginpath: MySQL's login path file reader

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
test
test
 
 
.gitignore
.gitignore
 
 
AUTHORS
AUTHORS
 
 
LICENSE.txt
LICENSE.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
myloginpath.py
myloginpath.py
 
 
pyproject.toml
pyproject.toml
 
 
renovate.json
renovate.json
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

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")

About

MySQL's login path file reader

pypi.org/project/myloginpath/

Topics

mysqlpython

Resources

Readme
MIT license
Activity
Custom properties

Stars

12 stars

Watchers

3 watching

Forks

9 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.