-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_parse_csv.py
76 lines (69 loc) · 3.13 KB
/
test_parse_csv.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from cryptoadvance.specterext.exfund.util import *
DATA = """
Serial Number,Address,Amount
EB000001,bc1q0k4k25pxhhaumewtylxh4wlxrn5krclgh66hgh,100
EB000002,bc1qf0lrc7reacxyrla64elepf6um93prksznc76ks
EB000003, bc1q0f90ha2pv4yeg8e5mhrjc387ga0h9njjpxg8z4,
EB000004,bc1qwe90yqy27n77a63arpnwgrsgypxydh4dearhnv
EB000005,bc1qsh874fsrvedpplyk0yq6ehn95rmwg6xll6mgq6
EB000006,bc1qxax5vwymva3jvu7czzkk8r35s7hfwpxndauwum
EB000007,bc1qy54pzdept56m4540sc8sqel0h45wkdd8ta4d43
EB000008,bc1qe9qgehhhtjs4pksclpjexqr70u4m28nrcwa20j
EB000009,bc1q39h532g2glgafthz0pyrh706d4ztpm9c9cs685
EB000010,bc1qfjanrfa2dex9hu7x0xe6lma9pdk8jdnmteclwe
EB000011,bc1q3aluth99pk396z8u4ngk525lx43f7mxfu8pyfl
EB000012,bc1q773y6c4kup73cxggl6604ysq4afekuk0kmdksv
EB000013,bc1q8twzjfcawp7xd4qlvf2khg2hevzay6kc00nqnz
EB000014,bc1qhu44kl004te5w048xvgqp9x4mkguef6yeweq7j
EB000015,bc1qgs26a44p0zuy4uxqcteaws2n4emturt87kq9d8
EB000016,bc1qul96x5jpkuauu89y9adldnw9klh0gr5pgllqav
EB000017,bc1qlmchdck6ttjk57p6f8vercll98smfm93f5rjhn
EB000018,bc1q8tzh52u527d3hwv4lgmpa2xw50sr3d8mnldxm8
EB000019,bc1qswplwpff44fpypddhh5wv8lc2xmeamvs7h6ry8
EB000020,bc1qqp277h7urrm53avt656uhx9ngl8c9lxc6u8mz0
EB000021,bc1q2mle6duvnwamjx5pgwm94dqprwkkdh0p5dlut6
EB000022,bc1qnq9alxnc243uy32l3r828cwahhvu4mr8kadph6
EB000023,bc1qamcdaalsdagvhz930mzsmfyvdexcgzyze0jumz
EB000024,bc1qjwkyc9sx3f8ahmzmkftsl5ewyz42rsvsjgzhlf
EB000025,bc1q60aehcjzh5stjzt83ta72fymgz802999a560ak
"""
DATA = """
Serial number,Address
EB000000,bcrt1qe2lmnwnmu7avpr2htnvwsu0z8886dkh0gj0hms,,
EB000001,bcrt1qr7d9ektwguscl6mtgt406kesrjdxxtnt9xkvrn,,
EB000002,bcrt1qr54ct3lmuytux2ut9vvmphxgsrwrduggnahqqe,,
EB000003,bcrt1qnk6p4ker2zkxeez9dymjd3g6j6xctceqlnsk6e,,
EB000004,bcrt1qgp9dpv2fjszfe70d9c4jweadedrzlgc38lpyym,,
EB000005,bcrt1qfqg6jxr7ykw8329t6ehfw7qsqe5u4nuavetmpm,,
EB000006,bcrt1qgfcg8df8u39np8xz8msu4p7vvewv42vlxdap56,,
EB000007,bcrt1qggjznaymue53nzygy956q43gmwyvamdgtmfa5x,,
EB000008,bcrt1q0tujnmff0qvv4lxtywr804q56jp4sjkfklea7n,,
EB000009,bcrt1qshjxwysyrhgcxkqh3a09h5rzxx3nn32mxr34he,,
EB000010,bcrt1q3vwpyg09uafwmzakg679lxcck9ej5jppzacy49,,
EB000011,bcrt1q8262397ysd4uawa76zctru4xe42xka8hn0xlma,,
EB000012,bcrt1qrsl9xrk92wtcnp68w3dels0hp7kqntjs6t44md,,
EB000013,bcrt1qqyz8sv9mu7nhl2uq9q3wuuwseydntvrrz7kfu6,,
EB000014,bcrt1qwg2vf27knm5lxjsv6ygvk4a9n7keepzyznertt,,
EB000015,bcrt1qd6g5xg0w0w30jjc7tq2fnkge9q95l4ca2vw0ed,,
EB000016,bcrt1qyy04s2cjufa9494ywt64zmrv6crnzqr0at4vlt,,
EB000017,bcrt1q2d6j9pqchm2ds8y792s9mhjcsakqp49ajzahn9,,
EB000018,bcrt1qsu28up6uf3nst5hd8w4gnef0q7spetqusnkwyv,,
EB000019,bcrt1qptm8uqqw8wr6l0che5a3lztsrna3zsz9v503f9,,
"""
DATA = """
Serial number,Address
EL000000,ert1qzyd2jkmm5l62spzju80fa7kfhhamqj0vd2s2sr
EL000001,ert1qlf4umta92erxqa2nvtvhvhp6r220dtm82jtelx
EL000002,ert1q2jhge69kk6s8pjvv6y798kvqzypay60gcyt57c
EL000003,ert1qu59u4tp26l42q77gvnv956y4aj227nq3dcppt0
EL000004,ert1qck58mjgw0x6eyr0k5t35t6fla5jp87p8ah26rv
EL000005,ert1qwyjl2ayw3uvun29p6hejnljactuwghmgkg28m9
EL000006,ert1qjepvvtwcumqrn36m5hn4q0ytylzxt8nm5grz7g
EL000007,ert1q8l0syqy99ncqx048ed5xa48vyqxecjvjdprdtl
EL000008,ert1qhxsnfqqgwtx4tcm2dcj29r2y89wp6fy0hhx3f8
EL000009,ert1q46yussdch3dmknqypyx32lddaskl89x7xajaca
"""
def main():
print(parse_csv(DATA))
if __name__ == "__main__":
main()