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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suext-0.0.3.tar.gz.
File metadata
- Download URL: suext-0.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6dff8be267f4e29afebf25b8209bc0e1f51acdc8a792a6b244f0a0b87ff05a6
|
|
| MD5 |
08fe3c6f49ee6f55071c21081fcc8f1e
|
|
| BLAKE2b-256 |
4be1410f8bdc52cb892a9fbc310dfac9d9b68dd89639afe1e005bcd2a4d05fdd
|
File details
Details for the file suext-0.0.3-py3-none-any.whl.
File metadata
- Download URL: suext-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4078b491ef3afb25a66ddb21fa37bb351d7a32f881021421ff942a0abe4ae939
|
|
| MD5 |
fb4f3053a8166d1c9c5b913b2aec340d
|
|
| BLAKE2b-256 |
cb5df17a33197afda8e7bdb211bd600cdcd88d87f2358e31865a20073a200158
|