tabular_editor
This has a Tabular_Editor
class which will download TE2 from a default location.
Or you can input your own location.
TabularEditor
Setting Tabular_Editor Class for future work.
Mainly runs download_tabular_editor()
Source code in pytabular/tabular_editor.py
__init__(exe_file_path='Default', verify_download=True)
Init for TabularEditor()
class.
This is mostly a placeholder right now. But useful if you want an easy way to download TE2.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exe_file_path |
str
|
File path where TE2 lives. Defaults to "Default".
If "Default", it will run |
'Default'
|
verify_download |
bool
|
Passthrough argument for |
True
|
Source code in pytabular/tabular_editor.py
download_tabular_editor(download_location='https://github.com/TabularEditor/TabularEditor/releases/download/2.16.7/TabularEditor.Portable.zip', folder='Tabular_Editor_2', auto_remove=True, verify=False)
Runs a request.get() to retrieve the zip file from web.
Will unzip response and store in directory. Will also register the removal of the new directory and files when exiting program.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
download_location |
str
|
File path for zip of Tabular Editor 2. See code args for default download url. |
'https://github.com/TabularEditor/TabularEditor/releases/download/2.16.7/TabularEditor.Portable.zip'
|
folder |
str
|
New Folder Location. Defaults to "Tabular_Editor_2". |
'Tabular_Editor_2'
|
auto_remove |
bool
|
Boolean to determine auto removal of files once script exits. Defaults to True. |
True
|
verify |
bool
|
Passthrough argument for |
False
|
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
File path of TabularEditor.exe |