django-mysqlping
Ping to MySQL in Django middleware.
This middleware ping to MySQL server before the request and auto reconnect to the server.
It supports PyMySQL(using MySQLdb mode) and mysqlclient in the database backend of Django(django.db.backends.mysql).
Usage
Add to settings.INSTALLED_APPS
INSTALLED_APPS = [
...
'mysqlping',
]
Add to settings.MIDDLEWARE (For example, you want to ping before every processes, therefore insert the middleware to first.)
MIDDLEWARE = [
'mysqlping.middleware.MySQLPingMiddleware',
...
]
License
This software is licensed under the MIT License.
Metadata
Release files for django-mysqlping 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_mysqlping-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for django_mysqlping-0.1.1-py3-none-any.whl |
Release files / django_mysqlping-0.1.1-py3-none-any.whl
| Download URL | django_mysqlping-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32d78ec6348efb9229875986c95b10a3ab7b30c8bf732168d095cb9ee444e4e7
|
|
BLAKE2b-256 checksum How to use checksums |
fa149d6cbadb1a13e411f3ebf13a391809c84077b6665c914098fa2015c44212
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
|
Security for django-mysqlping 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.