mysqlclient


Namemysqlclient JSON
Version 2.2.4 PyPI version JSON
download
home_page
SummaryPython interface to MySQL
upload_time2024-02-08 15:53:58
maintainer
docs_urlNone
author
requires_python>=3.8
licenseGNU General Public License v2 (GPLv2)
keywords mysql
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mysqlclient

This project is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).
This project adds Python 3 support and fixed many bugs.

* PyPI: https://pypi.org/project/mysqlclient/
* GitHub: https://github.com/PyMySQL/mysqlclient


## Support

**Do Not use Github Issue Tracker to ask help.  OSS Maintainer is not free tech support**

When your question looks relating to Python rather than MySQL:

* Python mailing list [python-list](https://mail.python.org/mailman/listinfo/python-list)
* Slack [pythondev.slack.com](https://pyslackers.com/web/slack)

Or when you have question about MySQL:

* [MySQL Community on Slack](https://lefred.be/mysql-community-on-slack/)


## Install

### Windows

Building mysqlclient on Windows is very hard.
But there are some binary wheels you can install easily.

If binary wheels do not exist for your version of Python, it may be possible to
build from source, but if this does not work, **do not come asking for support.**
To build from source, download the
[MariaDB C Connector](https://mariadb.com/downloads/#connectors) and install
it. It must be installed in the default location
(usually "C:\Program Files\MariaDB\MariaDB Connector C" or
"C:\Program Files (x86)\MariaDB\MariaDB Connector C" for 32-bit). If you
build the connector yourself or install it in a different location, set the
environment variable `MYSQLCLIENT_CONNECTOR` before installing. Once you have
the connector installed and an appropriate version of Visual Studio for your
version of Python:

```
$ pip install mysqlclient
```

### macOS (Homebrew)

Install MySQL and mysqlclient:

```bash
$ # Assume you are activating Python 3 venv
$ brew install mysql pkg-config
$ pip install mysqlclient
```

If you don't want to install MySQL server, you can use mysql-client instead:

```bash
$ # Assume you are activating Python 3 venv
$ brew install mysql-client pkg-config
$ export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"
$ pip install mysqlclient
```

### Linux

**Note that this is a basic step.  I can not support complete step for build for all
environment.  If you can see some error, you should fix it by yourself, or ask for
support in some user forum.  Don't file a issue on the issue tracker.**

You may need to install the Python 3 and MySQL development headers and libraries like so:

* `$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config`  # Debian / Ubuntu
* `% sudo yum install python3-devel mysql-devel pkgconfig`  # Red Hat / CentOS

Then you can install mysqlclient via pip now:

```
$ pip install mysqlclient
```

### Customize build (POSIX)

mysqlclient uses `pkg-config --cflags --ldflags mysqlclient` by default for finding
compiler/linker flags.

You can use `MYSQLCLIENT_CFLAGS` and `MYSQLCLIENT_LDFLAGS` environment
variables to customize compiler/linker options.

```bash
$ export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
$ export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
$ pip install mysqlclient
```

### Documentation

Documentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mysqlclient",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "MySQL",
    "author": "",
    "author_email": "Inada Naoki <songofacandy@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/79/33/996dc0ba3f03e2399adc91a7de1f61cb14b57ebdb4cc6eca8a78723043cb/mysqlclient-2.2.4.tar.gz",
    "platform": null,
    "description": "# mysqlclient\r\n\r\nThis project is a fork of [MySQLdb1](https://github.com/farcepest/MySQLdb1).\r\nThis project adds Python 3 support and fixed many bugs.\r\n\r\n* PyPI: https://pypi.org/project/mysqlclient/\r\n* GitHub: https://github.com/PyMySQL/mysqlclient\r\n\r\n\r\n## Support\r\n\r\n**Do Not use Github Issue Tracker to ask help.  OSS Maintainer is not free tech support**\r\n\r\nWhen your question looks relating to Python rather than MySQL:\r\n\r\n* Python mailing list [python-list](https://mail.python.org/mailman/listinfo/python-list)\r\n* Slack [pythondev.slack.com](https://pyslackers.com/web/slack)\r\n\r\nOr when you have question about MySQL:\r\n\r\n* [MySQL Community on Slack](https://lefred.be/mysql-community-on-slack/)\r\n\r\n\r\n## Install\r\n\r\n### Windows\r\n\r\nBuilding mysqlclient on Windows is very hard.\r\nBut there are some binary wheels you can install easily.\r\n\r\nIf binary wheels do not exist for your version of Python, it may be possible to\r\nbuild from source, but if this does not work, **do not come asking for support.**\r\nTo build from source, download the\r\n[MariaDB C Connector](https://mariadb.com/downloads/#connectors) and install\r\nit. It must be installed in the default location\r\n(usually \"C:\\Program Files\\MariaDB\\MariaDB Connector C\" or\r\n\"C:\\Program Files (x86)\\MariaDB\\MariaDB Connector C\" for 32-bit). If you\r\nbuild the connector yourself or install it in a different location, set the\r\nenvironment variable `MYSQLCLIENT_CONNECTOR` before installing. Once you have\r\nthe connector installed and an appropriate version of Visual Studio for your\r\nversion of Python:\r\n\r\n```\r\n$ pip install mysqlclient\r\n```\r\n\r\n### macOS (Homebrew)\r\n\r\nInstall MySQL and mysqlclient:\r\n\r\n```bash\r\n$ # Assume you are activating Python 3 venv\r\n$ brew install mysql pkg-config\r\n$ pip install mysqlclient\r\n```\r\n\r\nIf you don't want to install MySQL server, you can use mysql-client instead:\r\n\r\n```bash\r\n$ # Assume you are activating Python 3 venv\r\n$ brew install mysql-client pkg-config\r\n$ export PKG_CONFIG_PATH=\"$(brew --prefix)/opt/mysql-client/lib/pkgconfig\"\r\n$ pip install mysqlclient\r\n```\r\n\r\n### Linux\r\n\r\n**Note that this is a basic step.  I can not support complete step for build for all\r\nenvironment.  If you can see some error, you should fix it by yourself, or ask for\r\nsupport in some user forum.  Don't file a issue on the issue tracker.**\r\n\r\nYou may need to install the Python 3 and MySQL development headers and libraries like so:\r\n\r\n* `$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config`  # Debian / Ubuntu\r\n* `% sudo yum install python3-devel mysql-devel pkgconfig`  # Red Hat / CentOS\r\n\r\nThen you can install mysqlclient via pip now:\r\n\r\n```\r\n$ pip install mysqlclient\r\n```\r\n\r\n### Customize build (POSIX)\r\n\r\nmysqlclient uses `pkg-config --cflags --ldflags mysqlclient` by default for finding\r\ncompiler/linker flags.\r\n\r\nYou can use `MYSQLCLIENT_CFLAGS` and `MYSQLCLIENT_LDFLAGS` environment\r\nvariables to customize compiler/linker options.\r\n\r\n```bash\r\n$ export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`\r\n$ export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`\r\n$ pip install mysqlclient\r\n```\r\n\r\n### Documentation\r\n\r\nDocumentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)\r\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v2 (GPLv2)",
    "summary": "Python interface to MySQL",
    "version": "2.2.4",
    "project_urls": {
        "Documentation": "https://mysqlclient.readthedocs.io/",
        "Project": "https://github.com/PyMySQL/mysqlclient"
    },
    "split_keywords": [
        "mysql"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd55581ee5ceb37de7a75e5bdf53d8791b915916d9b558f947597a7668ae969c",
                "md5": "69d225673ddf55b0a625cbafefe0b7ab",
                "sha256": "ac44777eab0a66c14cb0d38965572f762e193ec2e5c0723bcd11319cc5b693c5"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "69d225673ddf55b0a625cbafefe0b7ab",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 203187,
            "upload_time": "2024-02-08T15:53:45",
            "upload_time_iso_8601": "2024-02-08T15:53:45.244937Z",
            "url": "https://files.pythonhosted.org/packages/cd/55/581ee5ceb37de7a75e5bdf53d8791b915916d9b558f947597a7668ae969c/mysqlclient-2.2.4-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "640c338ff73f627db62f2c321bcda61eddb80a384933aa543e3f59821b3c9756",
                "md5": "e899c6cd0dd54696e4dc4b7215a20072",
                "sha256": "329e4eec086a2336fe3541f1ce095d87a6f169d1cc8ba7b04ac68bcb234c9711"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "e899c6cd0dd54696e4dc4b7215a20072",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 203187,
            "upload_time": "2024-02-08T15:53:47",
            "upload_time_iso_8601": "2024-02-08T15:53:47.635466Z",
            "url": "https://files.pythonhosted.org/packages/64/0c/338ff73f627db62f2c321bcda61eddb80a384933aa543e3f59821b3c9756/mysqlclient-2.2.4-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3561fe1a8aa7ba090576632c16bd43fb0df78747d2f18c54e769015378667fb",
                "md5": "0842e9b8bba74cb3b0014ed7f7c1662e",
                "sha256": "e1ebe3f41d152d7cb7c265349fdb7f1eca86ccb0ca24a90036cde48e00ceb2ab"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "0842e9b8bba74cb3b0014ed7f7c1662e",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 203295,
            "upload_time": "2024-02-08T15:53:48",
            "upload_time_iso_8601": "2024-02-08T15:53:48.924224Z",
            "url": "https://files.pythonhosted.org/packages/d3/56/1fe1a8aa7ba090576632c16bd43fb0df78747d2f18c54e769015378667fb/mysqlclient-2.2.4-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fa44ae7b8be02fe112d10b190e7becd61d315e950a9d5d399fb032988445e01",
                "md5": "3952609f2b84229170afe29fa475b4de",
                "sha256": "3c318755e06df599338dad7625f884b8a71fcf322a9939ef78c9b3db93e1de7a"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "3952609f2b84229170afe29fa475b4de",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 203349,
            "upload_time": "2024-02-08T15:53:50",
            "upload_time_iso_8601": "2024-02-08T15:53:50.219271Z",
            "url": "https://files.pythonhosted.org/packages/6f/a4/4ae7b8be02fe112d10b190e7becd61d315e950a9d5d399fb032988445e01/mysqlclient-2.2.4-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8930aaebf801d4cf56df2150b64d9af04f1812d478e57ec4d4b2a5462d6d894",
                "md5": "e45b827cad689b4d276904e4f2468862",
                "sha256": "9d4c015480c4a6b2b1602eccd9846103fc70606244788d04aa14b31c4bd1f0e2"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "e45b827cad689b4d276904e4f2468862",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 203256,
            "upload_time": "2024-02-08T15:53:51",
            "upload_time_iso_8601": "2024-02-08T15:53:51.674977Z",
            "url": "https://files.pythonhosted.org/packages/f8/93/0aaebf801d4cf56df2150b64d9af04f1812d478e57ec4d4b2a5462d6d894/mysqlclient-2.2.4-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69fd12cf8420a7e62098a5312b6f690a6ab377025fa4ba01ed861ed97587a756",
                "md5": "d4f4e5e9620ec75674a0601885c9d838",
                "sha256": "d43987bb9626096a302ca6ddcdd81feaeca65ced1d5fe892a6a66b808326aa54"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-pp310-pypy310_pp73-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "d4f4e5e9620ec75674a0601885c9d838",
            "packagetype": "bdist_wheel",
            "python_version": "pp310",
            "requires_python": ">=3.8",
            "size": 203218,
            "upload_time": "2024-02-08T15:53:53",
            "upload_time_iso_8601": "2024-02-08T15:53:53.550921Z",
            "url": "https://files.pythonhosted.org/packages/69/fd/12cf8420a7e62098a5312b6f690a6ab377025fa4ba01ed861ed97587a756/mysqlclient-2.2.4-pp310-pypy310_pp73-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "87a89bf2a95be6d423f9adadc47deb5a96a8bd2f7bab5dea4864815bcc454681",
                "md5": "4ec294374736b98d408c12ad8f6db758",
                "sha256": "4e80dcad884dd6e14949ac6daf769123223a52a6805345608bf49cdaf7bc8b3a"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-pp38-pypy38_pp73-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "4ec294374736b98d408c12ad8f6db758",
            "packagetype": "bdist_wheel",
            "python_version": "pp38",
            "requires_python": ">=3.8",
            "size": 203548,
            "upload_time": "2024-02-08T15:53:55",
            "upload_time_iso_8601": "2024-02-08T15:53:55.034092Z",
            "url": "https://files.pythonhosted.org/packages/87/a8/9bf2a95be6d423f9adadc47deb5a96a8bd2f7bab5dea4864815bcc454681/mysqlclient-2.2.4-pp38-pypy38_pp73-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b18c3ca7dd7f6a014367876b51d9bd964c4019fe5fb16fda1df43ef9854467c0",
                "md5": "ec5286d6dfa27f43853a14940aa4788e",
                "sha256": "9d3310295cb682232cadc28abd172f406c718b9ada41d2371259098ae37779d3"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4-pp39-pypy39_pp73-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ec5286d6dfa27f43853a14940aa4788e",
            "packagetype": "bdist_wheel",
            "python_version": "pp39",
            "requires_python": ">=3.8",
            "size": 203368,
            "upload_time": "2024-02-08T15:53:56",
            "upload_time_iso_8601": "2024-02-08T15:53:56.834637Z",
            "url": "https://files.pythonhosted.org/packages/b1/8c/3ca7dd7f6a014367876b51d9bd964c4019fe5fb16fda1df43ef9854467c0/mysqlclient-2.2.4-pp39-pypy39_pp73-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7933996dc0ba3f03e2399adc91a7de1f61cb14b57ebdb4cc6eca8a78723043cb",
                "md5": "962de1bfcd1872e7d969bfe608b0a4b0",
                "sha256": "33bc9fb3464e7d7c10b1eaf7336c5ff8f2a3d3b88bab432116ad2490beb3bf41"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "962de1bfcd1872e7d969bfe608b0a4b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 90400,
            "upload_time": "2024-02-08T15:53:58",
            "upload_time_iso_8601": "2024-02-08T15:53:58.123467Z",
            "url": "https://files.pythonhosted.org/packages/79/33/996dc0ba3f03e2399adc91a7de1f61cb14b57ebdb4cc6eca8a78723043cb/mysqlclient-2.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 15:53:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyMySQL",
    "github_project": "mysqlclient",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "mysqlclient"
}
        
Elapsed time: 0.26049s