Skip to main content

Ascii_py

A python package for making ascii art

Installation

Run the following to install:

$ pip install ascii-python

Usage

Python Script

Import the ascii_py package, and you're done.

import ascii_py
  • See more in the Docs section

Terminal

$ Coming Soon

Developing Ascii_py

To install ascii_py, along with the tools you need to develop and run tests, run the following in your virtualenv:

$ pip install -e .[dev]

Docs

Import the package

import ascii_py

asciiImage class :

The responsible class for converting ( img <-> ascii )

ai = ascii_py.asciiImage(chars)
#                          ^-- Optional

'''
Chars is a list of strings used in converting images to ascii
orderd from brightest to lowest pixel values:


Default: ["@", "#", "S", "%", "?", "*", "+", ";", ":", ",", "."]
'''

asciiImage.img2ascii

converts an image to ascii text

asciiImg = ai.img2ascii(path, width=150)
#                               ^--Optional

'''
path  : (str)  The path to the image to be converted
width : (int)  the new width of the eimage after being converted
'''

print(asciiImg)  # <-- Returns (str)

Coming Soon :

  • asciiImage

    • img2asciiImg (returns an image)
    • ascii2img
  • asciiVideo

  • Terminal usage

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ascii-python-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ascii_python-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file ascii-python-0.1.0.tar.gz.

File metadata

  • Download URL: ascii-python-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for ascii-python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 adac9d46e6255bfa33dc4599e46583e481c0c31878203387c7895792eae9ee7d
MD5 de23b08369129577c381d00cec1eed4b
BLAKE2b-256 211562c5cbe9b3f1d450bdf646788857be1447b63c7920d5331136abc1383ab2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ascii_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for ascii_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f1d74604215b6780469f8703c6e19d409096cf6d4758e9489276fc1eaecfdb8
MD5 091d4b92cade90ce95f6bc0f348442ee
BLAKE2b-256 08a30bbd60149200eb5ab07c8dd49f96722191a2ac3f0815fbe695e555398a33

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.1

2 files

Supported by

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