[Chennaipy] Chennaipy - Monday Module - 29 Aug 2022
selvi dct
selvi.dct at gmail.com
Mon Aug 29 13:32:12 EDT 2022
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/chennaipy/attachments/20220829/d5c0b3fc/attachment.html>
More information about the Chennaipy
mailing list