Metadata-Version: 2.1
Name: django-mysqlping
Version: 0.1.1
Summary: Ping to MySQL in Django middleware.
Home-page: https://github.com/tokibito/django-mysqlping
Author: Shinya Okano
Author-email: tokibito@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: Django (>=1.11)
Provides-Extra: develop
Requires-Dist: pytest ; extra == 'develop'
Requires-Dist: flake8 ; extra == 'develop'
Requires-Dist: pytest-django ; extra == 'develop'
Requires-Dist: pytest-pythonpath ; extra == 'develop'
Requires-Dist: tox ; extra == 'develop'
Requires-Dist: wheel ; extra == 'develop'
Requires-Dist: twine ; extra == 'develop'

================
django-mysqlping
================

|build-status| |pypi| |docs|

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
=====

1. Add to settings.INSTALLED_APPS

::

   INSTALLED_APPS = [
       ...
       'mysqlping',
   ]

2. 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.

Author
======

* Shinya Okano

.. |build-status| image:: https://travis-ci.org/tokibito/django-mysqlping.svg?branch=master
   :target: https://travis-ci.org/tokibito/django-mysqlping
.. |docs| image:: https://readthedocs.org/projects/django-mysqlping/badge/?version=latest
   :target: https://readthedocs.org/projects/django-mysqlping/
.. |pypi| image:: https://badge.fury.io/py/django-mysqlping.svg
   :target: http://badge.fury.io/py/django-mysqlping


