myloginpath


Namemyloginpath JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummaryMySQL login path file reader
upload_time2023-06-02 04:07:23
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) 2019 Inada Naoki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords mysql
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```console
$ mysql_config_editor set --login-path=client --host=localhost --user=localuser --password
Enter password: <Type password here>
```

Use it from Python:

```python
import myloginpath, MySQLdb
conf = myloginpath.parse('client')
print(conf)  # {'host': 'localhost', 'user': 'localuser', 'password': 'secretstring'}
conn = MySQLdb.connect(**conf, database="myapp")
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "myloginpath",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "MySQL",
    "author": "",
    "author_email": "Inada Naoki <songofacandy@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/21/30/9acf030d204770c1134e130e8eb1293ce5ecd6a72046aaca68fbd76ead00/myloginpath-0.0.4.tar.gz",
    "platform": null,
    "description": "# MySQL's login path file reader\n\nDecrypt and parse MySQL's login path file.\n\nSee also: https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html\n\n\n## Install\n\n```\n$ pip install myloginpath\n```\n\n## Example\n\nCreate login path file with `mysql_config_editor` command:\n\n```console\n$ mysql_config_editor set --login-path=client --host=localhost --user=localuser --password\nEnter password: <Type password here>\n```\n\nUse it from Python:\n\n```python\nimport myloginpath, MySQLdb\nconf = myloginpath.parse('client')\nprint(conf)  # {'host': 'localhost', 'user': 'localuser', 'password': 'secretstring'}\nconn = MySQLdb.connect(**conf, database=\"myapp\")\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2019 Inada Naoki  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "MySQL login path file reader",
    "version": "0.0.4",
    "project_urls": {
        "Project": "https://github.com/PyMySQL/myloginpath/"
    },
    "split_keywords": [
        "mysql"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f5b9856543a055c0795f4441c40d143f66a5b04815415391ab4f2cf41a7a4d2",
                "md5": "70be2037c2896a26675f2e3419af0415",
                "sha256": "6d99d2e517b6c3a575032bcaa66f34f4bdea08116c97cf6a4977596af2498277"
            },
            "downloads": -1,
            "filename": "myloginpath-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "70be2037c2896a26675f2e3419af0415",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5016,
            "upload_time": "2023-06-02T04:07:21",
            "upload_time_iso_8601": "2023-06-02T04:07:21.722870Z",
            "url": "https://files.pythonhosted.org/packages/2f/5b/9856543a055c0795f4441c40d143f66a5b04815415391ab4f2cf41a7a4d2/myloginpath-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21309acf030d204770c1134e130e8eb1293ce5ecd6a72046aaca68fbd76ead00",
                "md5": "d25c961057608473ab1b259cde7f718c",
                "sha256": "c44b8d11e8f35a02eeac4b88bf244203c09cc496bfa19ce99a79561c038f9d09"
            },
            "downloads": -1,
            "filename": "myloginpath-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d25c961057608473ab1b259cde7f718c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4600,
            "upload_time": "2023-06-02T04:07:23",
            "upload_time_iso_8601": "2023-06-02T04:07:23.444634Z",
            "url": "https://files.pythonhosted.org/packages/21/30/9acf030d204770c1134e130e8eb1293ce5ecd6a72046aaca68fbd76ead00/myloginpath-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-02 04:07:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyMySQL",
    "github_project": "myloginpath",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "myloginpath"
}
        
Elapsed time: 0.07898s