This is a simple library for outputting to the console or receiving simple ASCII art as a string.
Project description
Description
API written in python that outputs beautiful ASCII art to the console! Look at CHANGELOG.md for the changes.
Installation
pip install artconsole
API Usage
>>> import artconsole
>>> artconsole.print_drawing('spiderman')
.-"""-. __
/ \.-" "-.
__: :\ ; `.
_._.-"" : ; `. : _ \
.' "-. " : \ /; \ .^. .-,
.-". : `. \_.' \' .'; .' `. `dP
,-" \ ;\ \ '. /". / :/ `. __ dP_,
: '. \_ ; `. __. ;_ `-._/ Y \ `. ( dP".';
; \ `. : "-._ ; ""-./ ; "-._ `--dP .' ;
: .--.; \ ; l '. `. ; ""--. dP / /
; / : \/ ;\ . "-. \___/ __\dP .-"_.-"
; / L_ \`. : "-.J "-._/ ""-._ ( dP\ / /
: : ; \ `.`. ; /"+. ""-. ""--.._dP-, `._."
\; : \ `.`-' _/ / "-.___ " \`-'
`. ; \ `._.-" ( ("--..__..---g, \
`. : ; /\ .-"\ ,-dP ; ;
\; .-'; _ _.--" \/ `._,-.-dP-' | ;
: :---"" """ `. _:'.`.\ : ;\
\ , : bug "-. (,j\ ` / ;\(// \\
`: \ "dP__.-" '-\\ \;
\ : .--dP, \;
`--' `dP`-'
.-j
`-:_
\)
`--'
>>> print(artconsole.return_drawing('mona_lisa'))
_______
_,,ad8888888888bba,_
,ad88888I888888888888888ba,
,88888888I88888888888888888888a,
,d888888888I8888888888888888888888b,
d88888PP"""" ""YY88888888888888888888b,
,d88"'__,,--------,,,,.;ZZZY8888888888888,
,8IIl'" ;;l"ZZZIII8888888888,
,I88l;' ;lZZZZZ888III8888888,
,II88Zl;. ;llZZZZZ888888I888888,
,II888Zl;. .;;;;;lllZZZ888888I8888b
,II8888Z;; `;;;;;''llZZ8888888I8888,
II88888Z;' .;lZZZ8888888I888b
II88888Z; _,aaa, .,aaaaa,__.l;llZZZ88888888I888
II88888IZZZZZZZZZ, .ZZZZZZZZZZZZZZ;llZZ88888888I888,
II88888IZZ<'(@@>Z| |ZZZ<'(@@>ZZZZ;;llZZ888888888I88I
,II88888; `""" ;| |ZZ; `""" ;;llZ8888888888I888
II888888l `;; .;llZZ8888888888I888,
,II888888Z; ;;; .;;llZZZ8888888888I888I
III888888Zl; .., `;; ,;;lllZZZ88888888888I888
II88888888Z;;...;(_ _) ,;;;llZZZZ88888888888I888,
II88888888Zl;;;;;' `--'Z;. .,;;;;llZZZZ88888888888I888b
]I888888888Z;;;;' ";llllll;..;;;lllZZZZ88888888888I8888,
II888888888Zl.;;"Y88bd888P";;,..;lllZZZZZ88888888888I8888I
II8888888888Zl;.; `"PPP";;;,..;lllZZZZZZZ88888888888I88888
II888888888888Zl;;. `;;;l;;;;lllZZZZZZZZW88888888888I88888
`II8888888888888Zl;. ,;;lllZZZZZZZZWMZ88888888888I88888
II8888888888888888ZbaalllZZZZZZZZZWWMZZZ8888888888I888888,
`II88888888888888888b"WWZZZZZWWWMMZZZZZZI888888888I888888b
`II88888888888888888;ZZMMMMMMZZZZZZZZllI888888888I8888888
`II8888888888888888 `;lZZZZZZZZZZZlllll888888888I8888888,
II8888888888888888, `;lllZZZZllllll;;.Y88888888I8888888b,
,II8888888888888888b .;;lllllll;;;.;..88888888I88888888b,
II888888888888888PZI;. .`;;;.;;;..; ...88888888I8888888888,
II888888888888PZ;;';;. ;. .;. .;. .. Y8888888I88888888888b,
,II888888888PZ;;' `8888888I8888888888888b,
II888888888' 888888I8888888888888888b
,II888888888 ,888888I88888888888888888
,d88888888888 d888888I8888888888ZZZZZZZ
,ad888888888888I 8888888I8888ZZZZZZZZZZZZZ
,d888888888888888' 888888IZZZZZZZZZZZZZZZZZZ
,d888888888888P'8P' Y888ZZZZZZZZZZZZZZZZZZZZZ
,8888888888888, " ,ZZZZZZZZZZZZZZZZZZZZZZZZ
d888888888888888, ,ZZZZZZZZZZZZZZZZZZZZZZZZZZZ
888888888888888888a, _ ,ZZZZZZZZZZZZZZZZZZZZ888888888
888888888888888888888ba,_d' ,ZZZZZZZZZZZZZZZZZ88888888888888
8888888888888888888888888888bbbaaa,,,______,ZZZZZZZZZZZZZZZ888888888888888888
88888888888888888888888888888888888888888ZZZZZZZZZZZZZZZ888888888888888888888
8888888888888888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888888888
888888888888888888888888888888888888888ZZZZZZZZZZZZZZ888888888888888888888888
8888888888888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888888888888
88888888888888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888888888
8888888888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888 Normand 88
88888888888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888 Veilleux 88
8888888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888888888888888888
More Characters
>>> artconsole.DRAWINGS.keys()
dict_keys(['captain_america', 'spiderman', 'mona_lisa', 'hexagonal', 'scorpion', 'snake',
'brachiosaur', 'pterodactyl', 'turtle', 'wolf', 'canada', 'eiffel_tower', 'mount_rushmore',
'statue_of_liberty', 'taj_mahal', 'pyramids', 'notre_dame', 'saint_basils_cathedral',
'stonehenge', 'white_house'])
>>> len(artconsole.DRAWINGS.keys())
20
Contributors
Guide: CONTRIBUTING.md
Star History
Gratitude
I would like to thank the ASCII Art Archive website separately since most of the drawings are taken from him!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file artconsole-1.0.7.tar.gz.
File metadata
- Download URL: artconsole-1.0.7.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0d3242ac8f95edeb78628a5412b505776d1e96bf0294b7640749afd61ca690a
|
|
| MD5 |
a559351796b81b0b1081ec2990615e73
|
|
| BLAKE2b-256 |
36737464bf2a11afc3b93789736ed2dcb3fe13423e5890799c215986f0f9fb39
|
File details
Details for the file artconsole-1.0.7-py3-none-any.whl.
File metadata
- Download URL: artconsole-1.0.7-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
765f5b922d00fdb0b3759ca989e743492a254fd8cd949f26ab174cca7da04af3
|
|
| MD5 |
f0ce9f1a02ae48ec054774220e271b94
|
|
| BLAKE2b-256 |
968147008189d9cddecc689e2c944cbc50e4ba09b433749c1448647368d8a353
|