Closed

Flask script

Hola, tengo un web service en flask que no funciona y tengo que hacerlo funcionar. ¿puedes ayudarme?

Es super simple, solo hace una consulta a una base de datos y ya está hecho. Supuestamente alguna vez funcionó. Está instalado dentro de un docker.

from flask import Flask,jsonify,Response

import psycopg2

import json

import os

app = Flask(__name__)

@[login to view URL]('/consulta/<emisor>/<dte>/<folio>/', methods=['GET'])

def get_consulta(emisor,dte,folio):

#Credenciales

db_user = [login to view URL]('usuario')

db_password = [login to view URL]('password')

db_port = [login to view URL]('puerto')

db_server = [login to view URL]('[login to view URL]')

db_name = [login to view URL]('environment')

conn = [login to view URL](dbname=db_name, user=db_user, host=db_server,password=db_password)

cursor = [login to view URL]()

# Consula

query = """select dte,folio from dte_referencia where emisor=%s

and referencia_dte=%s

and referencia_folio=%s limit 5;"""

[login to view URL](query, (emisor,dte,folio))

rows = [login to view URL]()

consulta = rows[0]

[login to view URL]()

[login to view URL]()

tasks = [

{

'dte': row[0],

'folio': row[1]

} for row in rows

]

return Response([login to view URL](tasks),mimetype='application/json')

if __name__ == "__main__":

[login to view URL](host='0.0.0.0', debug=True, port=80)

Skills: Python, Flask

See more: http post web service flash action script, convert php script web service, powerpoint jpg script web service, asp script timeout web service, praying times script web service, web service script prayer, amazon web service script, calling web service asp classic application vb script, pasos para consumir web service en asp clasico, restart web service perl script, rest web service php script, script livecycle web service, perl script connect web service, flask web service, web service flask, Hola se necesita crear una web sencilla en wordpress y el logo corporativo, crear un web service en php paso a paso, run powershell script from web service, run python script as web service, deploy python script as web service

About the Employer:
( 0 reviews ) Guayaquil, Ecuador

Project ID: #30223018

6 freelancers are bidding on average $31 for this job

(186 Reviews)
6.0
merinsinha

Flask script. Senior Python , Flask Expert. As 9+ years experiences in these field. I can give good quality work. I have read the guidelines of your work.I believe that i can provide you the best quality works you are More

$40 USD in 1 day
(15 Reviews)
4.1
NeofoxIn

we would be happy to assist you. :) Let us know when we can discuss this. we will wait for your positive response. Thanks Again Neofox Team [login to view URL]

$25 USD in 7 days
(4 Reviews)
2.9
ganesharmy95

Hello, sir . Nice to meet to you! I read your project description carefully and I have understood fully your requirements. I am professional in Python,Dajngo,flask,React ,Anguler and react native have many experiences More

$30 USD in 2 days
(2 Reviews)
2.2
BurpStudioMX

Hola ! Me gustaría trabajar contigo en este proyecto. He trabajado desarrollando aplicaciones web en Python durante los últimos 5 años. Estoy segura de que puedo ayudarte con este programa de flask. Me gusta trabaja More

$30 USD in 10 days
(0 Reviews)
0.0
AllanNS

Am an expert in flask and docker i have read the code above and i think i can help find a solution to your problem.

$30 USD in 1 day
(0 Reviews)
0.0