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

Uploaded Source

Built Distribution

command2img-0.3.1-py3-none-any.whl (735.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