mysqlclient


Namemysqlclient JSON
Version 2.2.6 PyPI version JSON
download
home_pageNone
SummaryPython interface to MySQL
upload_time2024-11-13 04:35:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseGNU General Public License v2 or later (GPLv2+)
keywords mysql
VCS
bugtrack_url
requirements coverage pytest pytest-cov tblib
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/MariaDB:

* 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/MariaDB:

* [MySQL Support](https://dev.mysql.com/support/)
* [Getting Help With MariaDB](https://mariadb.com/kb/en/getting-help-with-mariadb/)


## 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": null,
    "name": "mysqlclient",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "MySQL",
    "author": null,
    "author_email": "Inada Naoki <songofacandy@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/7d/62/51fbcd851834c830c940ded80280f593bd031137603329dd89479c68c5be/mysqlclient-2.2.6.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/MariaDB:\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/MariaDB:\r\n\r\n* [MySQL Support](https://dev.mysql.com/support/)\r\n* [Getting Help With MariaDB](https://mariadb.com/kb/en/getting-help-with-mariadb/)\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 or later (GPLv2+)",
    "summary": "Python interface to MySQL",
    "version": "2.2.6",
    "project_urls": {
        "Documentation": "https://mysqlclient.readthedocs.io/",
        "Project": "https://github.com/PyMySQL/mysqlclient"
    },
    "split_keywords": [
        "mysql"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1a04f4e68d1a71b53ad81ac21e37729c1fcf38be46b88e3d47ab315e36abace0",
                "md5": "c06cdb9c36b02b97aa00b54587879ad1",
                "sha256": "e94a92858203d97fd584bdb6d7ee8c56f2590db8d77fd44215c0dcf5e739bc37"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "c06cdb9c36b02b97aa00b54587879ad1",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 207533,
            "upload_time": "2024-11-13T04:35:23",
            "upload_time_iso_8601": "2024-11-13T04:35:23.005779Z",
            "url": "https://files.pythonhosted.org/packages/1a/04/f4e68d1a71b53ad81ac21e37729c1fcf38be46b88e3d47ab315e36abace0/mysqlclient-2.2.6-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e2f63ac198c2633dc49de56b4631353e7a8b241fbda77bddb635c0b2ae57b9e3",
                "md5": "ad707b8b97c29d18a43897a131ebf7ef",
                "sha256": "43c5b30be0675080b9c815f457d73397f0442173e7be83d089b126835e2617ae"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ad707b8b97c29d18a43897a131ebf7ef",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 207532,
            "upload_time": "2024-11-13T04:35:25",
            "upload_time_iso_8601": "2024-11-13T04:35:25.137407Z",
            "url": "https://files.pythonhosted.org/packages/e2/f6/3ac198c2633dc49de56b4631353e7a8b241fbda77bddb635c0b2ae57b9e3/mysqlclient-2.2.6-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f2e0d4806d4970136047ba247ad738d8d9e19655f114a91326fc790d86f4234e",
                "md5": "167426c537d4c8e5b862ebb1aad5f783",
                "sha256": "e940b41d85dfd7b190fa47d52f525f878cfa203d4653bf6a35b271b3c3be125b"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "167426c537d4c8e5b862ebb1aad5f783",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 207811,
            "upload_time": "2024-11-13T04:35:27",
            "upload_time_iso_8601": "2024-11-13T04:35:27.020320Z",
            "url": "https://files.pythonhosted.org/packages/f2/e0/d4806d4970136047ba247ad738d8d9e19655f114a91326fc790d86f4234e/mysqlclient-2.2.6-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7f929d67ec977119abf692429751b6ce5b84baef33cded260768d813e742be08",
                "md5": "e12a7ce38f1a77b52df2a289e478c0d4",
                "sha256": "794857bce4f9a1903a99786dd29ad7887f45a870b3d11585b8c51c4a753c4174"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-cp313-cp313-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "e12a7ce38f1a77b52df2a289e478c0d4",
            "packagetype": "bdist_wheel",
            "python_version": "cp313",
            "requires_python": ">=3.8",
            "size": 207806,
            "upload_time": "2024-11-13T04:35:28",
            "upload_time_iso_8601": "2024-11-13T04:35:28.983248Z",
            "url": "https://files.pythonhosted.org/packages/7f/92/9d67ec977119abf692429751b6ce5b84baef33cded260768d813e742be08/mysqlclient-2.2.6-cp313-cp313-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "995ac5f8e21d8eeec052f7cf08f400a204f630c91eb2339c385c94d114f2945e",
                "md5": "b173e5476652d39abbb74ff2883afe16",
                "sha256": "b0a5cddf1d3488b254605041070086cac743401d876a659a72d706a0d89c8ebb"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "b173e5476652d39abbb74ff2883afe16",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 207650,
            "upload_time": "2024-11-13T04:35:30",
            "upload_time_iso_8601": "2024-11-13T04:35:30.973559Z",
            "url": "https://files.pythonhosted.org/packages/99/5a/c5f8e21d8eeec052f7cf08f400a204f630c91eb2339c385c94d114f2945e/mysqlclient-2.2.6-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "dbb464d6a3b1e0c7d58dfce962595add65cd0fa181db2c2ecc524cc4c8f7c168",
                "md5": "8c48bc9bb0a06c72e9460a717a3e66d4",
                "sha256": "f3efb849d6f7ef4b9788a0eda2e896b975e0ebf1d6bf3dcabea63fd698e5b0b5"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-pp310-pypy310_pp73-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "8c48bc9bb0a06c72e9460a717a3e66d4",
            "packagetype": "bdist_wheel",
            "python_version": "pp310",
            "requires_python": ">=3.8",
            "size": 207576,
            "upload_time": "2024-11-13T04:35:32",
            "upload_time_iso_8601": "2024-11-13T04:35:32.815271Z",
            "url": "https://files.pythonhosted.org/packages/db/b4/64d6a3b1e0c7d58dfce962595add65cd0fa181db2c2ecc524cc4c8f7c168/mysqlclient-2.2.6-pp310-pypy310_pp73-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b9c5cbb4f24288ffbdf416c572e2e98b5b30bcc03fd09ae1b3538b04406b895b",
                "md5": "34fd8e34270c4612ae8aa8c5533d8ccc",
                "sha256": "3da70a07753ba6be881f7d75e795e254f6a0c12795778034acc69769b0649d37"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6-pp39-pypy39_pp73-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "34fd8e34270c4612ae8aa8c5533d8ccc",
            "packagetype": "bdist_wheel",
            "python_version": "pp39",
            "requires_python": ">=3.8",
            "size": 207761,
            "upload_time": "2024-11-13T04:35:34",
            "upload_time_iso_8601": "2024-11-13T04:35:34.338631Z",
            "url": "https://files.pythonhosted.org/packages/b9/c5/cbb4f24288ffbdf416c572e2e98b5b30bcc03fd09ae1b3538b04406b895b/mysqlclient-2.2.6-pp39-pypy39_pp73-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7d6251fbcd851834c830c940ded80280f593bd031137603329dd89479c68c5be",
                "md5": "1a6609e521ec597e8d9bf94a335a0cab",
                "sha256": "c0b46d9b78b461dbb62482089ca8040fa916595b1b30f831ebbd1b0a82b43d53"
            },
            "downloads": -1,
            "filename": "mysqlclient-2.2.6.tar.gz",
            "has_sig": false,
            "md5_digest": "1a6609e521ec597e8d9bf94a335a0cab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 91055,
            "upload_time": "2024-11-13T04:35:36",
            "upload_time_iso_8601": "2024-11-13T04:35:36.829341Z",
            "url": "https://files.pythonhosted.org/packages/7d/62/51fbcd851834c830c940ded80280f593bd031137603329dd89479c68c5be/mysqlclient-2.2.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 04:35:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyMySQL",
    "github_project": "mysqlclient",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "coverage",
            "specs": []
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-cov",
            "specs": []
        },
        {
            "name": "tblib",
            "specs": []
        }
    ],
    "lcname": "mysqlclient"
}
        
Elapsed time: 0.37081s