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

Release files for ascii-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ascii-python 0.1.0
File Size Uploaded
ascii-python-0.1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ascii-python 0.1.0
File Interpreter ABI Platform
ascii_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / ascii-python-0.1.0.tar.gz

Download URL ascii-python-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
adac9d46e6255bfa33dc4599e46583e481c0c31878203387c7895792eae9ee7d
BLAKE2b-256 checksum
How to use checksums
211562c5cbe9b3f1d450bdf646788857be1447b63c7920d5331136abc1383ab2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ascii_python-0.1.0-py3-none-any.whl

Download URL ascii_python-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f1d74604215b6780469f8703c6e19d409096cf6d4758e9489276fc1eaecfdb8
BLAKE2b-256 checksum
How to use checksums
08a30bbd60149200eb5ab07c8dd49f96722191a2ac3f0815fbe695e555398a33
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page