Kapalı

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)

Beceriler: Python, Flask

Daha fazlasını gör: 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

İşveren Hakkında:
( 0 değerlendirme ) Guayaquil, Ecuador

Proje NO: #30223018

Bu iş için 6 freelancer ortalamada $31 teklif veriyor

(186 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(15 Değerlendirme)
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 gün içinde
(4 Değerlendirme)
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 Daha Fazla

$30 USD in 2 gün içinde
(2 Değerlendirme)
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 Daha Fazla

$30 USD in 10 gün içinde
(0 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0