Skip to main content

Utility for showing any file extension and MIME type info. Support show files information in a directory as list or table.

Project description

Installation

pip install suext

Usage:

  • suext [-t|--table] [-m|--mime] [-d|--description] <filename>

  • suext [-t|--table] [-m|--mime] [-d|--description] <dirname>

  • suext -h|--help

  • suext -v|--version

Options:

  • <filename> Full or relative path to filename for showing file extension.

  • <dirname> Full or relative path to directory for showing all files extension in this directories.

  • -t --table Display result as table.

  • -m --mime Display mime type.

  • -d --description Display mime type description.

  • -h --help Show help screen.

  • -v --version Show current utility version.

Examples

Get 1 file extension:

$ suext README.rst

Output:

rst

Get file extension with filename and MIME type:

$ suext -m README.rst

Output:

README.rst
rst
text/plain

Get file extension with filename and MIME description:

$ suext -d README.rst

Output:

README.rst
rst
ASCII text

Get file extension with filename, MIME type and descriptin as table:

$ suext -t -m -d README.rst

Output:

File name    File extension    MIME type    MIME description
-----------  ----------------  -----------  ------------------
README.rst   rst               text/plain   ASCII text

Get files extensions with filenames, MIME types and descriptions in current directory as table:

$ suext -t -m -d .

Output:

File name         File extension    MIME type                 MIME description
----------------  ----------------  ------------------------  ------------------------------------------------
.gitignore        gitignore         text/plain                ASCII text
LICENSE           LICENSE           text/plain                ASCII text
README.rst        rst               text/plain                ASCII text
requirements.txt  txt               text/plain                ASCII text
setup.py          py                text/x-python             Python script, ASCII text executable
suext.py          py                text/x-python             Python script, ASCII text executable
suext.pyc         pyc               application/octet-stream  python 2.7 byte-compiled
upload.sh         sh                text/x-shellscript        Bourne-Again shell script, ASCII text executable

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suext-0.0.3.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

suext-0.0.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page