Giter VIP home page Giter VIP logo

art's People

Contributors

codewithnick avatar datinkerer avatar dependabot-preview[bot] avatar eumiro avatar pyup-bot avatar sadrasabouri avatar sepandhaghighi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

art's Issues

Saving problem for more than one dot(.) filenames

Description

When using tsave function to save files with more than one dot, it produce some issues.

Steps/Code to Reproduce

>>> tsave("test","standard",filename="test1.2.txt")

Expected Behavior

Saved! 
Filename: test1.2.txt
{'Status': True, 'Message': 'OK'}

Actual Behavior

Saved! 
Filename: test1.2
{'Status': True, 'Message': 'OK'}

Operating System

Ubuntu 18.04

Python Version

Python 3.6.8

art in MATLAB

Description

Add an example to show : how to use art in MATLAB

Use lower version of setuptools to enable usage of pex

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 error for some fonts

Description

tsave function error for some fonts

Steps/Code to Reproduce

>>> from art import *
>>> Data = tsave("test@34",font="antrophobia",filename="antrophobia.txt",print_status=False)
>>> Data["Message"]

Expected Behavior

OK

Actual Behavior

'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)

Operating System

Ubuntu 14.04

Python Version

Python 2.7.6

ART Version (Use : art.__version__)

3.9

art not printing ASCII text when compiled using pyinstaller

Description

When Python Code converted into Binary using Pyinstaller, It doesn't print ASCII text into Console anymore.

Steps/Code to Reproduce

  1. Install art and pyisntaller using pip
  2. create a simple Program such as
from art import *
tprint("Test",font="univers")
  1. compile it using pyinstaller. pyinstaller --onefile test.py
  2. open it.

Expected Behavior

Should print ASCII text into Console

Actual Behavior

Not Printing Any text into Console

Operating System

Windows 10

Python Version

3.7.4

ART Version

4.5

Add text-decoration

Description

Add decoration parameter to text2art, tsave and tprint functions

Expected Behavior

>>> from art import *
>>> tprint("test",font="fancy6",decoration="1")
▁ ▂ ▄ ▅ ▆ ▇ █ᏖᏋᏕᏖ█ ▇ ▆ ▅ ▄ ▂ ▁

font_wizard enhancement

Description

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.

New features for font_wizard

  1. It can asks for font's name first and it's optional extra questions (for example "Is it ASCII or not?")
  2. Run FontList.ipynb and autopep8
  3. update font index in README.md
  4. add a test case for new added font

Complete contribution guideline for adding a font can be found here.

Initial Update

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.

Wizard mode enhancement

Description

  • wizard mode should guarantee support of all 95 printable ASCII characters
  • Add more fonts

Add overwrite option to tsave function

Description

Adding overwrite flag to tsave function

Steps/Code to Reproduce

>>> tsave("test","standard",filename="test1.txt")
Saved! 
Filename: test1.txt
{'Message': 'OK', 'Status': True}
>>> tsave("test","standard",filename="test1.txt",overwrite=True)

Expected Behavior

Saved! 
Filename: test1.txt
{'Message': 'OK', 'Status': True}

Github Actions

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 and got warning "[Warning] 'rand' is not printable in this environment."

Description

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.

Steps/Code to Reproduce

from art import  *
aprint("rand")

Expected Behavior

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) '

Actual Behavior

[Warning] 'rand' is not printable in this environment.

Operating System

Windows 10 Pro

Python Version

3.8.1

ART Version (Use : art.__version__)

4.4

tsave bug in windows

Description

It seems tsave function has some problems in Windows

Steps/Code to Reproduce

>>> from art import *
>>> tsave("test","block",filename="test.txt")
Saved!
Filename: test2.txt
{'Message': 'OK', 'Status': True}

Expected Behavior

expected

Actual Behavior

actual

Operating System

Windows 10

Python Version

Python 3.6

ART Version (Use : art.__version__)

ART 4.5

output to file

salaam

Please add some option to print created art work to a text or jpg file.

regards.

utf-8 characters like Chinese cannot show.

Description

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.

tprint and aprint error in some enviroments

Description

tprint and aprint error in some enviroments

Steps/Code to Reproduce

>>> tprint("test","fancy45")

Expected Behavior

тešт

Actual Behavior

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>

Operating System

Windows 10

Python Version

Python 3.5

ART Version (Use : art.__version__)

3.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.