sepandhaghighi / art Goto Github PK
View Code? Open in Web Editor NEW🎨 ASCII art library for Python
Home Page: https://www.ascii-art.site
License: MIT License
🎨 ASCII art library for Python
Home Page: https://www.ascii-art.site
License: MIT License
It seems there is high level coverage in TEST_FILTERED_FONTS
and RANDOM_FILTERED_FONTS
Originally posted by @sepandhaghighi in #59 (comment)
https://coolsymbol.com/cool-fancy-text-generator.html
Originally posted by @sepandhaghighi in #59 (comment)
When using tsave function to save files with more than one dot, it produce some issues.
>>> tsave("test","standard",filename="test1.2.txt")
Saved!
Filename: test1.2.txt
{'Status': True, 'Message': 'OK'}
Saved!
Filename: test1.2
{'Status': True, 'Message': 'OK'}
Ubuntu 18.04
Python 3.6.8
Add random mode to decor
https://smiley.cool/en/weirdmaker.php
Originally posted by @sepandhaghighi in #59 (comment)
Please add remaining fonts from this reference (Limit : <=15)
Note 1 : Each font in a separate commit
Note 2 : Before start, take a look at Contributing Guidelines
https://textart.io/art/tag/one-line/1
Originally posted by @sepandhaghighi in #59 (comment)
http://www.findwebapp.com/ascii-art-one-liner/
Originally posted by @sepandhaghighi in #59 (comment)
Add an example to show : how to use art in MATLAB
Originally posted by @sepandhaghighi in #59 (comment)
http://www.ascii-art.de/ascii/mno/one_line.txt
Originally posted by @sepandhaghighi in #59 (comment)
I don't evidently see the reason why the package would need a higher version of setuptools (>=39.2.0). This prevents the usage of pex, which has a requirement of setuptools>=20.3,<34.0
.
As pex is widely used, it would perhaps be feasible to disable the constraint of enforcing a higher version of setuptools.
tsave
function error for some fonts
>>> from art import *
>>> Data = tsave("test@34",font="antrophobia",filename="antrophobia.txt",print_status=False)
>>> Data["Message"]
OK
'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)
Ubuntu 14.04
Python 2.7.6
art.__version__
)3.9
Suggest us some new fonts and arts 😉🙏
When Python Code converted into Binary using Pyinstaller, It doesn't print ASCII text into Console anymore.
art
and pyisntaller
using pipfrom art import *
tprint("Test",font="univers")
pyinstaller --onefile test.py
Should print ASCII text into Console
Not Printing Any text into Console
Windows 10
3.7.4
4.5
https://hubpages.com/technology/one-line-ascii-art-for-twitter
Originally posted by @sepandhaghighi in #59 (comment)
Migrating from Travis/Appveyor to GitHub Actions
Remove bipartite arts, like love_you
https://www.messletters.com/en/
Originally posted by @sepandhaghighi in #59 (comment)
Add decoration
parameter to text2art
, tsave
and tprint
functions
None
>>> from art import *
>>> tprint("test",font="fancy6",decoration="1")
▁ ▂ ▄ ▅ ▆ ▇ █ᏖᏋᏕᏖ█ ▇ ▆ ▅ ▄ ▂ ▁
Please disable setuptools
as a runtime requirement. It should be used in setup_requires
field instead of install_requires
.
Adding fonts to art could be boring with some repeated steps that should be considered for each font.
font_wizard.py has been developed by @sepandhaghighi as a solution to this problem but it can be more helpful.
FontList.ipynb
and autopep8
Complete contribution guideline for adding a font can be found here.
The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
Originally posted by @sepandhaghighi in #59 (comment)
wizard
mode should guarantee support of all 95 printable ASCII charactershttps://www.sprezzkeyboard.com/
Originally posted by @sepandhaghighi in #59 (comment)
Adding overwrite
flag to tsave
function
>>> tsave("test","standard",filename="test1.txt")
Saved!
Filename: test1.txt
{'Message': 'OK', 'Status': True}
>>> tsave("test","standard",filename="test1.txt",overwrite=True)
Saved!
Filename: test1.txt
{'Message': 'OK', 'Status': True}
http://textart4u.blogspot.com/2013/03/one-line-ascii-text-art.html?m=1
Originally posted by @sepandhaghighi in #59 (comment)
Can we add Github actions to this repository so that the tasks about deploying packages and releases new packages can be much more easier?
Tried aprint("rand")
from docs README.md and got warning [Warning] 'rand' is not printable in this environment.
seems more like an error cos I don't get any output other than the warning.
from art import *
aprint("rand")
one of the following at least
>>> aprint("butterfly") # print art
Ƹ̵̡Ӝ̵̨̄Ʒ
>>> aprint("happy") # print art
ۜ\(סּںסּَ` )/ۜ
>>> aprint("love_you",number=1,text="test") # 2-part art
»-(¯`·.·´¯)->test<-(¯`·.·´¯)-«
>>> aprint("random") # random 1-line art mode
'(っ◕‿◕)っ '
>>> aprint("rand") # random 1-line art mode
't(-_-t) '
[Warning] 'rand' is not printable in this environment.
Windows 10 Pro
3.8.1
art.__version__
)4.4
Add a script to check arts and decors duplication, encoding and ... (like font_check.py
)
It seems tsave
function has some problems in Windows
>>> from art import *
>>> tsave("test","block",filename="test.txt")
Saved!
Filename: test2.txt
{'Message': 'OK', 'Status': True}
Windows 10
Python 3.6
art.__version__
)ART 4.5
salaam
Please add some option to print created art work to a text or jpg file.
regards.
I want to show some Chinese in ascii art,but it didn't work.Is there a way to support that?Thanks!
from art import *
art_1=art("你好hello") # return art as str in normal mode
print(art_1)
It cannot be show ascii draw correctly.
It seems that saythanks.io is out of service and it's link should be removed from README.md
How do I get the font type for each randomly generated image.
tprint('openhackathon', font='random')
art.__version__
)https://en.m.wikipedia.org/wiki/Playing_cards_in_Unicode
Originally posted by @sadrasabouri in #59 (comment)
tprint
and aprint
error in some enviroments
>>> tprint("test","fancy45")
тešт
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Sepkjaer\AppData\Local\Programs\Python\Python35-32\lib\site-packages\art-3.9-py3.5.egg\art\art.py", line 194, in tprint
File "C:\Users\Sepkjaer\AppData\Local\Programs\Python\Python35-32\lib\encodings\cp720.py", line 21, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-4: character maps to <undefined>
Windows 10
Python 3.5
art.__version__
)3.9
https://www.instagramfonts.com/
Originally posted by @sadrasabouri in #58 (comment)
Originally posted by @sepandhaghighi in #59 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.