python-module-mysql/__init__.py

26 lines
786 B
Python
Raw Permalink Normal View History

2019-12-03 11:10:02 +01:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Sql connection module."""
# /*
# * ----------------------------------------------------------------------------
# * "THE BEER-WARE LICENSE" (Revision 42):
# * <boris.tassou@securmail.fr> wrote this file. As long as you retain this notice you
# * can do whatever you want with this stuff. If we meet some day, and you think
# * this stuff is worth it, you can buy me a beer in return Boris Tassou
# * ----------------------------------------------------------------------------
# */
import sys
# Global name
__version__ = '1.0'
__author__ = 'Boris Tassou <boris.tassou@securmail.fr>'
__license__ = 'Beerware'
try:
2019-12-03 12:12:41 +01:00
import pymysql
2019-12-03 11:10:02 +01:00
except ImportError:
2019-12-03 14:58:19 +01:00
print('PyMYSQL library not found')
2019-12-03 11:10:02 +01:00
sys.exit(1)