Skip to main content

A command-line tool that converts images to ASCII art.

Project description


"   35005550    22           666     666             165         "
"  002          77    003    555     555             350         "
" 056                155677  555     555             3554 337    "
" 053   89889   00   4559    55555555555  006   400  3557   008  "
" 059     300   00    051    555     555  059   700  350    850  "
" 3007    700   00    053    555     555  059   400  350    950  "
"   900988500   00    90034  000     000  800371650  205847805   "


Command Line ASCII Art Generator

ASCIIcli is a command line interface that is powered by Python3. You can generate ASCII art by importing an image and then selecting the character set that you want to generate with.

Installation & Building

PIP

The easiest way to install ASCIIcli is by using the PyPI library. You can run pip install ASCIIcli on any command-line with Python3 in order to install it.

Releases

If you are unable to use the PyPI library you can access ASCIIcli by going to our releases page. There you can download the .exe file and run the CLI by going to the folder that the program is downloaded in and running .\asciicli


Usage

asciicli [-h] [--percent] [--set] [--random] [--invert] [--darkness] C:/full/path/to/your/image

Set 1: A --> Z
Set 2: 0 --> 9
Set 3: 0, O, o, 8, 9, 6, @, &, ., ", :
Set 4: ▀, ▄, ▌, ▐, ■, ◽, ◆, ►, ●, ░, ▒, ▓, █
Set 5: !, @, #, $, %, ^, &, *, (, ), _, +, -, =

NOTE: SET 5 MIGHT NOT DISPLAY CORRECTLY IN CERTAIN FONTS OR EDITORS

If you have downloaded the application through pip input the following command in the terminal:
asciicli --percent 20 --set 1 --random True C:/full/path/to/your/image

If you are running the .exe package you will need to slightly alter the command by calling the exact folder of ASCIIcli
.\path\to\asciicli.exe --percent 20 --set 1 --random True C:/full/path/to/your/image

Assuming the file is 1024x219, this command will generate a .txt file that is 21 lines long with each line taking up 201 characters using the character set to one. The --set 1 variable is optional as the default character set is one. Random has been set to true and it will take the image from assets/input.jpg and generate a .txt file titled input-ascii.jpg in the same folder as the image.

Random and Invert are boolians and must be set to True/False, whereas Darkness, Set, Height and Width are all integers.


LICENSE

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

ASCIIcli-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

ASCIIcli-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file ASCIIcli-0.1.0.tar.gz.

File metadata

  • Download URL: ASCIIcli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ASCIIcli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 909efa28e5324d08bd63a541a6e903e30dea79a378a21195edc66b02198de105
MD5 1615a1f811f61a032ba54d041e52025b
BLAKE2b-256 2b64edbbf389e20ec1978a7d7971f8e8e417c1f82097e785bd20df85fc76ad8e

See more details on using hashes here.

File details

Details for the file ASCIIcli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ASCIIcli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ASCIIcli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11cdcd5d59f5a7f92105c03c968f8182c1332a0e8daf16513b22cd188158fec8
MD5 07f0f727fc17229e4995b6bff66688b6
BLAKE2b-256 4db1d89904b9471828121cac1c502ab50a15ad7c728224e7cd6975c6701b98c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page