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)
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 anticipating from this platfrom give me a chance to show you the best i can do at your service.
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 for 7+ years.
So I'm very interested in your project and you will satisfy with my perfect result for any requirements as you want.
If you hire me, I'll do my best for you.
Thanks. ganesh
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 trabajar hasta que el cliente este satisfecho con la entrega final, es por eso que el precio incluye revisiones ilimitadas.
Si tienes alguna pregunta no dudes en contactarme.