MCPcopy
hub / github.com/engineer-man/youtube / output_xml

Function output_xml

stream019/process.py:14–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 file.write(contents)
13
14def output_xml():
15 xml = ['<?xml version="1.0" encoding="UTF-8"?>']
16
17 xml.append('<banks>')
18 for row in reader:
19 xml.append('<bank>')
20 for k, v in row.items():
21 xml.append(' <{}>{}</{}>'.format(k, v, k))
22 xml.append('</bank>')
23 xml.append('<banks>')
24
25 with open('data.xml', 'w') as file:
26 file.write('\n'.join(xml))
27
28def total_deposits():
29 total = 0

Callers 1

process.pyFile · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected