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
Metadata
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ascii-python-0.1.0.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for ascii-python 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.