Date: 29 Aug 2022
Module : art
Installation : pip install art
About:
ASCII art is also known as "computer text art". It involves the smart
placement of typed special characters or letters to make a visual shape
that is spread over multiple lines of text.
ART is a Python lib for text converting to ASCII art fancy.
Source:
from art import *
print("Coffee", art("coffee")) # return art as str in normal mode
print("")
print("Random", art("random")) # random 1-line art mode
print("")
print("Woman", art("woman",number=2)) # return multiple art as str
print("")
print("Butterfly")
aprint("butterfly") # print art
print("")
print("Happy")
aprint("happy") # print art
print("")
print("Text2Art")
print(text2art("art")) # Return ASCII text (default font) and default
chr_ignore=True
Output:
Coffee c[_]
Random |==|iiii|>-----
Woman ▓⚗_⚗▓ ▓⚗_⚗▓
Butterfly
Ƹ̵̡Ӝ̵̨̄Ʒ
Happy
ۜ\(סּںסּَ` )/ۜ
Text2Art
_
__ _ _ __ | |_
/ _` || '__|| __|
| (_| || | | |_
\__,_||_| \__|
Reference:
https://pypi.org/project/art/
_______________________________________________
Chennaipy mailing list
[email protected]
https://mail.python.org/mailman/listinfo/chennaipy