-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtest.py
31 lines (25 loc) · 910 Bytes
/
test.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
import os
from datetime import datetime
from tpsread import TPS
if __name__ == '__main__':
print(datetime.now())
for topdir, dirs, files in sorted(os.walk('./testdata/')):
for filename in files:
if filename.lower().endswith('.tps'):
print(os.path.join(topdir, filename))
# try:
tps = TPS(os.path.join(topdir, filename), encoding='cp1251', cached=True, check=True,
current_tablename='UNNAMED')
print(datetime.now())
for record in tps:
# print(record)
pass
print(datetime.now())
#unittest
#pep8
#Docs (+comment)
#readme
#pydoc
#Profiler
#metadata field
#load in memory