-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Takuro Fujino edited this page May 13, 2024
·
11 revisions
Welcome to the AFTViewer wiki!
Any File Type Viewer (AFTViewer) is a CUI/TUI tool to view any kind of packaged, archived, or binary files made by Python.
usage: aftviewer [-h] [--version]
[-t {hdf5,pickle,numpy,np_pickle,tar,zip,sqlite3,raw_image,jupyter,xpm,stl,fits}]
file
show the constitution of a file. Supported file types ... hdf5, pickle, numpy,
np_pickle, tar, zip, sqlite3, raw_image, jupyter, xpm, stl, fits. To see the
detailed help of each type, type 'aftviewer help -t TYPE'.
positional arguments:
file input file
options:
-h, --help show this help message and exit
--version, -V show program's version number and exit
-t {hdf5,pickle,numpy,np_pickle,tar,zip,sqlite3,raw_image,jupyter,xpm,stl,fits}, --type {hdf5,pickle,numpy,np_pickle,tar,zip,sqlite3,raw_image,jupyter,xpm,stl,fits}
specify the file type. "aftviewer help -t TYPE" will
show the detailed help.
AFTViewer has some subcommands, 'aftviewer help -t TYPE' shows detailed help,
'aftviewer update' run the update command of AFTViewer, 'aftviewer
config_list' shows the current optional configuration, 'aftviewer
shell_completion --bash >> ~/.bashrc' or 'aftviewer shell_completion --zsh >>
~/.zshrc' set the completion script for bash/zsh.
The basic process of this software is designed to work with standard libraries of recent Python3.
To show some kinds of files, external libraries are required.
e.g.)
The following libraries are not always necessary but are useful if available.
- numpy for hdf5
- tabulate for sqlite3
- Matplotlib or Plotly for stl to display 3-D model.
To show images, imaging-related libraries (Currently supporting libraries are PIL (Pillow), Matplotlib, or OpenCV) or shell commands (e.g. "open" in macOS) with supporting bitmap (.bmp) files are required.
pip
command is available.
python -m pip install git+https://github.com/MeF0504/aftviewer
or in Windows OS,
py -m pip install git+https://github.com/MeF0504/aftviewer
If you want to install all modules used in AFTViewer,
python -m pip install "aftviewer[all] @ git+https://github.com/MeF0504/aftviewer"
# or
py -m pip install "aftviewer[all] @ git+https://github.com/MeF0504/aftviewer"