A python package for making ascii art
Project description
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
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for ascii_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f1d74604215b6780469f8703c6e19d409096cf6d4758e9489276fc1eaecfdb8 |
|
MD5 | 091d4b92cade90ce95f6bc0f348442ee |
|
BLAKE2b-256 | 08a30bbd60149200eb5ab07c8dd49f96722191a2ac3f0815fbe695e555398a33 |