Skip to main content

This is an simple program to convert a command line to image.

Project description

command2img

GitHub license PyPI - Downloads PyPI

Motivation

This program was developed from the need I had to capture the output of a program as an image to insert into a report.

Install

To install it, you can use the python package manager:

pip install command2img

Update

pip install --upgrade command2img

Uninstall

pip uninstall command2img

Examples

using exa (tree):

exa --tree --icons | py -m command2img

tree image

using date:

date | py -m command2img -bt 0 -tf white

echo image

using echo:

echo -n "Example echo" | py -m command2img -fs 50 -m 15 -ff ~/Inspiration-Regular.ttf

date image

using cat:

cat README.md | py -m command2img -bc "black" -tf "white"

cat image

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

command2img-0.3.1.tar.gz (925.4 kB view details)

Uploaded Source

Built Distribution

command2img-0.3.1-py3-none-any.whl (735.1 kB view details)

Uploaded Python 3

File details

Details for the file command2img-0.3.1.tar.gz.

File metadata

  • Download URL: command2img-0.3.1.tar.gz
  • Upload date:
  • Size: 925.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for command2img-0.3.1.tar.gz
Algorithm Hash digest
SHA256 db18fd049513a57c033bbfd54ef1e3d48e3fde711cae5c13f570f0f7ef2c10fa
MD5 dd6fbf51e693b44c72076c5c9745c33a
BLAKE2b-256 7ef94995c1d04ecd14806413649aafa2579803304f3d073b1d61a1a7133a98bf

See more details on using hashes here.

File details

Details for the file command2img-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: command2img-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 735.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for command2img-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03da66a5fe31be9f175048b18995a4e5688198a0507d4298123ac2dbf0a5ea6c
MD5 3bc93456264796a47970e2081111f957
BLAKE2b-256 04f9efaeee935e38592881d2d11cb590162f945d30fbfe5137a962dde1dc9fdd

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