Inspect audio and image files from command line
Project description
inspec
Visually inspect audio files and images from the command line by displaying them as unicode characters.
Tested on png
, jpg
, mp4
, and wav
files.
Quick start
pip install inspec
From command line
Usage: inspec [OPTIONS] COMMAND [ARGS]...
Commands:
imshow Print an image to stdout
listen Listen to audio and print to stdout
open Open interactive GUI
show Print an audio file to stdout
From python
import inspec
inspec.imshow("path/to/image/file.png")
inspec.ashow("path/to/audio/file.wav")
inspec.vshow("path/to/video/file.mp4")
inspec.listen()
Dev setup
git clone git@github.com:kevinyu/inspec.git
cd inspec
python -m venv env
source bin/activate
pip install -e .
You might need ffmpeg
for video support not sure tho.
Run tests
pytest src
Examples
inspec show demo/warbling.wav
inspec imshow demo/mandrill.jpg
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
inspec-0.5.tar.gz
(33.2 kB
view hashes)
Built Distribution
inspec-0.5-py3-none-any.whl
(44.6 kB
view hashes)