import sqlite3
import psycopg2
import sys

USERNAME = 'wert'
PASSWORD = '123'
SECRET = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RTdsff'
TOKEN = 'tokenstart3dje34dfjd'
SOCKET_PORT = 8084

# подключение к базе данных
# DB = {
#     'driver': 'postgres',
#     'dbName': 'test1',
#     'host': 'localhost',
#     'port': 5432,
#     'user': "lex",
#     'pass': '123',
# }
DB = {
    'driver': 'postgres',
    'dbName': 'tecmintdb',
    'host': 'localhost',
    'port': 5432,
    'user': 'admin',
    'pass': 'admin',
}


# функция создания подключения к БД
def createConnection():
    if (DB['driver'] == 'sqlite3'):
        conn = sqlite3.connect(DB['dbName'] + '.db')
    elif (DB['driver'] == 'postgres'):
        conn = psycopg2.connect(dbname=DB['dbName'], user=DB['user'],
                                password=DB['pass'], host=DB['host'])
    else:
        sys.exit('Erorr name driver connection')
    return conn

c1bc13808afcb863637c7f85bee4dfd17c8f1408
<mask token>

<mask token>


def createConnection():
    if DB['driver'] == 'sqlite3':
        conn = sqlite3.connect(DB['dbName'] + '.db')
    elif DB['driver'] == 'postgres':
        conn = psycopg2.connect(dbname=DB['dbName'], user=DB['user'],
            password=DB['pass'], host=DB['host'])
    else:
        sys.exit('Erorr name driver connection')
    return conn

<mask token>
USERNAME = 'wert'
PASSWORD = '123'
SECRET = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RTdsff'
TOKEN = 'tokenstart3dje34dfjd'
SOCKET_PORT = 8084
DB = {'driver': 'postgres', 'dbName': 'tecmintdb', 'host': 'localhost',
    'port': 5432, 'user': 'admin', 'pass': 'admin'}


def createConnection():
    if DB['driver'] == 'sqlite3':
        conn = sqlite3.connect(DB['dbName'] + '.db')
    elif DB['driver'] == 'postgres':
        conn = psycopg2.connect(dbname=DB['dbName'], user=DB['user'],
            password=DB['pass'], host=DB['host'])
    else:
        sys.exit('Erorr name driver connection')
    return conn

import sqlite3
import psycopg2
import sys
USERNAME = 'wert'
PASSWORD = '123'
SECRET = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RTdsff'
TOKEN = 'tokenstart3dje34dfjd'
SOCKET_PORT = 8084
DB = {'driver': 'postgres', 'dbName': 'tecmintdb', 'host': 'localhost',
    'port': 5432, 'user': 'admin', 'pass': 'admin'}


def createConnection():
    if DB['driver'] == 'sqlite3':
        conn = sqlite3.connect(DB['dbName'] + '.db')
    elif DB['driver'] == 'postgres':
        conn = psycopg2.connect(dbname=DB['dbName'], user=DB['user'],
            password=DB['pass'], host=DB['host'])
    else:
        sys.exit('Erorr name driver connection')
    return conn

import sqlite3
import psycopg2
import sys

USERNAME = 'wert'
PASSWORD = '123'
SECRET = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RTdsff'
TOKEN = 'tokenstart3dje34dfjd'
SOCKET_PORT = 8084

# подключение к базе данных
# DB = {
#     'driver': 'postgres',
#     'dbName': 'test1',
#     'host': 'localhost',
#     'port': 5432,
#     'user': "lex",
#     'pass': '123',
# }
DB = {
    'driver': 'postgres',
    'dbName': 'tecmintdb',
    'host': 'localhost',
    'port': 5432,
    'user': 'admin',
    'pass': 'admin',
}


# функция создания подключения к БД
def createConnection():
    if (DB['driver'] == 'sqlite3'):
        conn = sqlite3.connect(DB['dbName'] + '.db')
    elif (DB['driver'] == 'postgres'):
        conn = psycopg2.connect(dbname=DB['dbName'], user=DB['user'],
                                password=DB['pass'], host=DB['host'])
    else:
        sys.exit('Erorr name driver connection')
    return conn
