.----------------. .----------------. .----------------. | .--------------. || .--------------. || .--------------. | | | __ | || | _______ | || | _________ | | | | / \ | || | |_ __ \ | || | | _ _ | | | | | / /\ \ | || | | |__) | | || | |_/ | | \_| | | | | / ____ \ | || | | __ / | || | | | | | | | _/ / \ \_ | || | _| | \ \_ | || | _| |_ | | | ||____| |____|| || | |____| |___| | || | |_____| | | | | | || | | || | | | | '--------------' || '--------------' || '--------------' | '----------------' '----------------' '----------------'
Simple ASCII Art Library For Python
- Download Version 0.3 or Latest Source
python3 setup.py install
orpython setup.py install
(Need root access)
- Check Python Packaging User Guide
pip install art
orpip3 install art
(Need root access)
>>> from art import * #import art library >>> aprint("butterfly") # print 1-line art Ƹ̵̡Ӝ̵̨̄Ʒ >>> aprint("happy") ۜ\(סּںסּَ` )/ۜ >>> art_1=art("coffee") # return 1-line art >>> print(art_1) c[_] >>> tprint("art") # print ascii text (default font) _ __ _ _ __ | |_ / _` || '__|| __| | (_| || | | |_ \__,_||_| \__| >>> tprint("art",font="block") # print ascii text (block font) .----------------. .----------------. .----------------. | .--------------. || .--------------. || .--------------. | | | __ | || | _______ | || | _________ | | | | / \ | || | |_ __ \ | || | | _ _ | | | | | / /\ \ | || | | |__) | | || | |_/ | | \_| | | | | / ____ \ | || | | __ / | || | | | | | | | _/ / \ \_ | || | _| | \ \_ | || | _| |_ | | | ||____| |____|| || | |____| |___| | || | |_____| | | | | | || | | || | | | | '--------------' || '--------------' || '--------------' | '----------------' '----------------' '----------------' >>> tsave("art",filename="test.txt") # save ascii text in test.txt file with save message (print_status==True) Saved! Filename: test.txt >>> tsave("art",filename="test.txt",print_status=False) # save ascii text in test.txt file without save message (print_status==False) >>> tsave("art") # save ascii text in art.txt Saved! Filename: art.txt >>> tprint('testسس') # chr_ignore flag ==True (Default) _ _ | |_ ___ ___ | |_ | __| / _ \/ __|| __| | |_ | __/\__ \| |_ \__| \___||___/ \__| >>> tprint('testسس',chr_ignore=False) # chr_ignore flag == False [Error] Invalid Char! >>> tprint('''Lorem # Multi-line print ipsum dolor''', font="cybermedium") _ ____ ____ ____ _ _ | | | |__/ |___ |\/| |___ |__| | \ |___ | | _ ___ ____ _ _ _ _ | |__] [__ | | |\/| | | ___] |__| | | ___ ____ _ ____ ____ | \ | | | | | |__/ |__/ |__| |___ |__| | \
- List of arts :
python -m art list
- List of fonts :
python -m art fonts
- Test :
python -m art test
- Text :
python -m art text yourtext fontname(optional)
- Shape :
python -m art shape art_name
- Save :
python -m art save yourtext fontname(optional)
Just fill an issue and describe it. I'll check it ASAP! or send an email to [email protected].
You can fork the repository, improve or fix some part of it and then send the pull requests back if you want to see them here. I really appreciate that. ❤️
Remember to write a few tests for your code before sending pull requests.
1XGr9qbZjBpUQJJSB6WtgBQbDTgrhPLPA