File tree Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Original file line number Diff line number Diff line change
1
+ import toml
2
+
3
+ class Config :
4
+ def __init__ (self , fpath ):
5
+ self .__data = toml .load (fpath )
6
+ pass
7
+
8
+ @property
9
+ def validator_dir (self ):
10
+ return self .__data ["validator_dir" ]
11
+
12
+ @property
13
+ def data_dir (self ):
14
+ return self .__data ["data_dir" ]
Original file line number Diff line number Diff line change 2
2
"""Export data from Excel file.
3
3
4
4
Usage:
5
- excel2xx.py json <excel> [options]
6
- excel2xx.py msgpack <excel> [options]
5
+ excel2xx.py json <excel> -o FILE -- [options]
6
+ excel2xx.py msgpack <excel> -o FILE [options]
7
7
excel2xx.py mako <excel> --template=FILE [options]
8
8
excel2xx.py build --from=DIR --to=DIR [options]
9
9
excel2xx.py codegen --from=DIR --to=GLOB [options]
Original file line number Diff line number Diff line change 1
- VERSION = "0.11.6 "
1
+ VERSION = "0.11.7 "
Original file line number Diff line number Diff line change 1
1
xlrd == 1.2.*
2
2
openpyxl == 3.1.*
3
3
docopt >= 0.6.0
4
- mako == 1.2.*
4
+ mako >= 1.3.0
5
5
msgpack-python >= 0.4.8
6
6
colorama >= 0.4.6
7
+ toml >= 0.10.0
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def _open(fname):
23
23
24
24
setup (
25
25
name = "excel2xx" ,
26
- version = "0.11.6 " ,
26
+ version = "0.11.7 " ,
27
27
url = "https://github.com/cupen/excel2xx" ,
28
28
license = "WTFPL" ,
29
29
author = "cupen" ,
@@ -52,6 +52,8 @@ def _open(fname):
52
52
"Programming Language :: Python :: 3.12" ,
53
53
"Programming Language :: Python :: Implementation :: CPython" ,
54
54
"Topic :: Software Development :: Libraries :: Python Modules" ,
55
+ "Topic :: Software Development :: Compilers" ,
56
+ "Topic :: Software Development :: Code Generators" ,
55
57
],
56
58
packages = find_packages (),
57
59
)
You can’t perform that action at this time.
0 commit comments