import MySQLdb
import MySQLdb.cursors

db = MySQLdb.connect(host='85.215.144.168', user='asesoft', passwd='Pantera1', db='deca', port=3306)
c = db.cursor(MySQLdb.cursors.DictCursor)

c.execute("SELECT * FROM deca_cabecera WHERE codigo_deca = 'DECA-FRUTASPRIETO-2026-000008'")
row = c.fetchone()
print("=== DECA-FRUTASPRIETO-2026-000008 ===")
if row:
    for k, v in row.items():
        if v is not None:
            print(f"{k}: {v}")
