I am looking for a Python developer who can assist me with passing an XML file to Flask from the main process in a python web application when the main program is creating the data which is intended to displayed on a web page using Ajax. The Html part is working and I am able to send dummy data however I am not able to send the calculated data between the process'
Format of the XML file: XML
Purpose of passing the XML file: Data transfer
Specific libraries or dependencies required: No
Skills and experience needed for the job:
- Proficiency in Python and Flask
- Experience working with XML files and data transfer
- Strong understanding of web development and Flask framework
Please provide examples of previous projects or relevant experience in your proposal.
[login to view URL]
_______________________________________________________________________________________
from flask import Flask, request, render_template, send_file ,g
import [login to view URL] as ET
import [login to view URL]
import ctypes
import os
import serial
import time
from multiprocessing import Process, Queue, Pool, Manager
from ctypes import c_wchar_p
xml_doc = [login to view URL]('TESTS')
#
#Flask Web application
app = Flask(__name__, template_folder='template')
[login to view URL] = True
@app.before_request
def before_request():
g.xml_str =""
@[login to view URL]("/", methods=['GET', 'POST'])
def index():
return render_template("[login to view URL]")
@[login to view URL]('/test_log')
def test_log():
return g.xml_str
@[login to view URL]('/[login to view URL]')
def my_plot():
return send_file('template/[login to view URL]', mimetype='image/png')
if __name__ == "__main__":
flaskManager = Manager()
xml_var = [login to view URL](c_wchar_p, "")
pool = Process(target = [login to view URL], args=['0.0.0.0',None,True,True])
[login to view URL]()
#[login to view URL]()
#[login to view URL](debug=True, host='0.0.0.0')
#xml_doc = [login to view URL]('TESTS')
serial_number= [login to view URL](xml_doc,'SERIAL_NO')
[login to view URL](serial_number,'SERIAL').text = '1234512'
test = [login to view URL](xml_doc,'TEST')
[login to view URL](test,'TITLE').text = 'Test'
[login to view URL](test,'RESULT').text = 'PASS'
test1 = [login to view URL](xml_doc,'TEST')
[login to view URL](test1,'TITLE').text = 'Test1'
[login to view URL](test1,'RESULT').text = 'FAIL'
# xml_str = [login to view URL]([login to view URL](xml_doc)).toprettyxml()
# g.xml_str = [login to view URL]([s for s in [login to view URL]() if [login to view URL]()])
# print(xml_str)
________________________________________________________________________________
[login to view URL]
________________________________________________________________________________
<!DOCTYPE html>
<html>
<head>
<title>FLASK Test</title>
<script type="text/javascript">
function myFunction(xml) {
var xmlDoc = new DOMParser().parseFromString([login to view URL], "text/xml");
// update serial number
var serial_numberXML = [login to view URL]("SERIAL_NO");
// update logging table
var i;
var table="<tr><th>Test</th><th></th><th>Result</th></tr>";
var logging = [login to view URL]("TEST");
for (i = 0; i <[login to view URL]; i++) {
result_color="<td>";
if (logging[i].getElementsByTagName("RESULT")[0].childNodes[0].nodeValue =="FAIL"){
result_color="<td style = color:#FF0000;>";
}
if (logging[i].getElementsByTagName("RESULT")[0].childNodes[0].nodeValue =="PASS"){
result_color="<td style = color:#00FF00;>";
}
table += "<tr><td>" +
logging[i].getElementsByTagName("TITLE")[0].childNodes[0].nodeValue +
"</td><td></td>"+result_color+
logging[i].getElementsByTagName("RESULT")[0].childNodes[0].nodeValue +
"</td></tr>";
}
[login to view URL]("SerialNumber").innerHTML = serial_numberXML[0].getElementsByTagName("SERIAL")[0].childNodes[0].nodeValue ;
[login to view URL]("test_log").innerHTML = table;
status.innerHTML="";
}
function do_ajax() {
var req = new XMLHttpRequest();
var result = [login to view URL]('result');
[login to view URL] = function()
{
if([login to view URL] == 4 && [login to view URL] == 200) {
myFunction(this);
} else {
[login to view URL] = "Processing...";
}
}
[login to view URL]('GET', '/test_log', true);
[login to view URL]();
var el = [login to view URL]("plot");
el.innerHTML="<img src=[login to view URL]" + new Date().getTime()+">";
}
setInterval(do_ajax,1000);
</script>
</head>
<body>
<b><label style="font-size:400%" id="DeviceID">FLASK Test</label></b>
<br><br>
<table style="font-size:300%">
<tr>
<th>Serial Number</th>
<th id=SerialNumber>0000</th>
</tr>
</table>
<br><br>
<label id=status></label>
<table style="font-size:200%" id="test_log"></table>
<div id="plot"><div>
</body>
</html>
Hi
I have read your description carefully.
⭐
I have rich experiences in Python Flask and Scraping.
⭐
I worked on many similar projects.
I can guarantee the quality of the job.
Please kindly message me.
Thank you.
$50 NZD in 7 days
0.0
(0 reviews)
0.0
0.0
10 freelancers are bidding on average $123 NZD for this job
Hi there,
Greetings! I am enthusiastic to extend my interest in your pass xml to flask from main process in python project. With 4-5 years of expertise in Software Architecture, Python and Flask, I am poised to make a significant contribution to your project.
Please note the initial bid is provisional. A final quote will be shared post a thorough discussion on the project requirements or after reviewing any detailed documentation you can provide.
May I request any available detailed documentation? Additionally, I am open for further discussions to delve deeper into specific aspects of the project.
I encourage you to review my profile, which showcases my portfolio, past jobs, and client reviews, reflecting the quality and professionalism I infuse in every project.
I am dedicated to building long-term relationships with clients, always striving to offer a competitive budget without compromising on quality.
Thank you for considering my proposal. I am eagerly looking forward to the opportunity to collaborate and contribute to your project's success. Please let me know if you require any additional information.
Best regards,
Rashid Amjad.
Hi,
⭐⭐ I am a full-stack Developer ⭐⭐ with experience in Python
Software Architecture
Flask.
I have worked on many similar projects as I have a team of enthusiastic developers.
We strive to give our best. Please contact me to discuss this in detail.
Regards:
ITtechsol
Hello Client, My name is Hamza and I am an experienced Python developer with expertise in software architecture and Python. I understand that you are looking for someone to help you pass an XML file to Flask from the main process in your Python web application when the main program is creating the data which is intended to be displayed on a web page using Ajax.
I believe I am the perfect person for the job because of my extensive experience working with XML files and data transfer as well as strong understanding of web development and the Flask framework. This set of skills makes me well-suited to complete this project on time, on budget, and to your satisfaction. Furthermore, my commitment to quality ensures that each project is completed with precision and care.
If you would like me to discuss further how I can help you with this project please feel free; just let me know when it's convenient for you.
I understand that you are looking for someone to assist you with passing an XML file to your Flask application when the main program is creating the data which is intended to be displayed on a web page using Ajax. I believe I am the perfect fit for this project due to my extensive experience in web development and specifically with the Flask framework. Additionally, my skillset includes proficiency in Python and Flask which will enable me to quickly understand and work on your project.
I would be more than happy to discuss this project further if given the opportunity. Please don't hesitate to contact me if you have any questions or would like to discuss further how I can help you with this project.
⭐⭐⭐Hi Peter G. Good morning!⭐⭐⭐
I am excited to submit my proposal for the "pass xml to flask from main process in python" position.
I have developed a strong set of skills that make me confident in my ability to deliver high-quality work to your project.
My approach to any project is to first gain a deep understanding of the client's needs and requirements. I will work closely with you to ensure that I understand your project goals and objectives, and that I am able to deliver results that meet or exceed your expectations.
In terms of technical skills, I have extensive experience in Software Architecture, Python and Flask.
"plot"
Please contact me to discuss more about this project.
Hope to hear from you soon.
❤️Solomiia❤️
I can definitely assist you in pass xml to flask within the 24-hour timeframe. Please start the chat, and I'll get started on the conversion right away.
Hello, I just read your project requirement carefully and want to join your project.
I have experience with similar project on python + flask.
And I have already worked on the website development for 5+ years.
If you want, I can share my experience with python flask project.
I am looking forward to hearing from you.
good luck.