Skip to main content

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


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 details)

Uploaded Source

Built Distribution

inspec-0.5-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file inspec-0.5.tar.gz.

File metadata

  • Download URL: inspec-0.5.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for inspec-0.5.tar.gz
Algorithm Hash digest
SHA256 805f0dc8891fb06683c4267ff47ada27b3c0f15b43b05736f2c02da6fff0af10
MD5 c5c1ed21bbf0a800b05b3d1294141556
BLAKE2b-256 8fd356aadd2dab81d7900c3d8d0ee963099aa84da4ee327c5f21e72d49c7bd9d

See more details on using hashes here.

File details

Details for the file inspec-0.5-py3-none-any.whl.

File metadata

  • Download URL: inspec-0.5-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for inspec-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8e03276219fa2101e632b8f891c896262e527dd5a16cb7bd83411abd2f8ba37e
MD5 e35a47a996adfb48475e5de5e2be6530
BLAKE2b-256 a5daee5528d08616b85676661c8c875e55e4a0d30485359d6f7810c02d7345b2

See more details on using hashes here.

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