Skip to content
Takuro Fujino edited this page May 6, 2024 · 11 revisions

Welcome to the AFTViewer wiki!

Introduction

Any File Type Viewer (AFTViewer) is a CUI/TUI tool to view any kind of packaged, archived, or binary files made by Python.

Usage

usage: aftviewer [-h] [--version]
                 [-t {hdf5,pickle,numpy,np_pickle,tar,zip,sqlite3,raw_image,jupyter,xpm}]
                 file

show the constitution of a file. Supported file types ... hdf5, pickle, numpy,
np_pickle, tar, zip, sqlite3, raw_image, jupyter, xpm. 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}, --type {hdf5,pickle,numpy,np_pickle,tar,zip,sqlite3,raw_image,jupyter,xpm}
                        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.

Requirements

The basic process of this software is designed to work with standard libraries of recent Python 3.
To show some kinds of files, external libraries are required.

e.g.)

The following libraries are not always necessary but are useful if available.

To show images, some imaging-related libraries (e.g. PIL (Pillow), matplotlib or OpenCV) or shell commands (e.g. "open" in macOS) are required.

Installation

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"
Clone this wiki locally