Giter Club home page Giter Club logo

fabulous's Introduction

Fabulous TRAVIS

Fabulous is a Python library (and command line tools) designed to make the output of terminal applications look fabulous. Fabulous allows you to print colors, images, and stylized text to the console (without curses.) Fabulous also offers features to improve the usability of Python's standard logging system.

Documentation is available at jart.github.io/fabulous.

fabulous's People

Contributors

jart avatar jaysonlarose avatar laarmen avatar ralphbean avatar rossdylan avatar saturnin13 avatar wonkyoc 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

fabulous's Issues

Does not work from local directory

1: download repo as zip
2: create test.py in repo directory
3: code for test.py:

from fabulous import text
print text.Text("Fabulous", color='#0099ff', shadow=True, scew=5)

error when D-clicking test.py:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 

Traceback (most recent call last):
  File "\home\tcll\Desktop\fabulous-master\test.py", line 1, in <module>
    from fabulous import text
  File "\home\tcll\Desktop\fabulous-master\fabulous\text.py", line 46, in <module>
    import grapefruit
ImportError: No module named grapefruit
>>> 

if this module needs to be compiled, please distribute binary builds with the src.
normal users just want to download and run, not compile.

Fabulous interferes with logging level

Importing a module from fabulous (e.g. from fabulous import image as fab_image) causes my logging to disappear:

This is the Docker environment if you want to reproduce it exactly:

FROM python:3.7-alpine
ENV PYTHONUNBUFFERED=1  # doesn't have any effect
RUN pip3 install --no-cache-dir fabulous

docker-compose.yml:

version: '3.7'
services:
  logging_test:
    build: .
    volumes:
      - .:/work:Z
    working_dir: /work
#!/usr/bin/env python3
import logging
from fabulous import image as fab_image

logging.basicConfig(level=logging.INFO)

logging.info('Hello!')

docker-compose run --rm logging_test ./logging_test.py prints absolutely nothing. Removing the import makes it print to the terminal again.

I've also noticed that fabulous doesn't like the Docker TTY, as a docker run -it crashes calls to the fabulous text/image modules but docker-compose works.

A typo in README

There is a typo in README: print text.Text("Fabulous", color='#0099ff', shadow=True, scew=5) when there should be "skew=5)". Yep. That's it.

Can't install via pip, but *can* under easy_install

The dependence on grapefruit can't be satisfied automatically via pip

$ sudo pip install fabulous
[sudo] password for timv: 
Downloading/unpacking fabulous
  You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files.
  You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
  Downloading fabulous-0.1.5.tar.gz (322kB): 322kB downloaded
  Running setup.py egg_info for package fabulous

Downloading/unpacking grapefruit (from fabulous)
  Could not find a version that satisfies the requirement grapefruit (from fabulous) (from versions: 0.1a1, 0.1a2, 0.1a3, 0.1a3)
Cleaning up...
No distributions matching the version for grapefruit (from fabulous)
Storing complete log in /home/timv/.pip/pip.log

Easy install works though.

$ sudo easy_install fabulous
Searching for fabulous
Reading https://pypi.python.org/simple/fabulous/
Reading http://lobstertech.com/fabulous.html
Best match: fabulous 0.1.5
Downloading http://lobstertech.com/media/file/fabulous/fabulous-0.1.5.tar.gz
Processing fabulous-0.1.5.tar.gz
Writing /tmp/easy_install-pmbviI/fabulous-0.1.5/setup.cfg
Running fabulous-0.1.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-pmbviI/fabulous-0.1.5/egg-dist-tmp-pW1Gme
Adding fabulous 0.1.5 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/fabulous-0.1.5-py2.7.egg
Processing dependencies for fabulous
Searching for grapefruit
Reading https://pypi.python.org/simple/grapefruit/
Reading http://code.google.com/p/grapefruit/
Best match: grapefruit 0.1a3
Downloading http://grapefruit.googlecode.com/files/grapefruit-0.1a3.tar.gz
Processing grapefruit-0.1a3.tar.gz
Writing /tmp/easy_install-l9V7Xq/setup.cfg
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-l9V7Xq/egg-dist-tmp-GXY8hq
Adding grapefruit 0.1a3 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/grapefruit-0.1a3-py2.7.egg
Finished processing dependencies for fabulous

Weird. Any idea why?

Broken on Windows: Need to use shutil.get_terminal_size()

Trying to the the simple examples working but the
from fabulous.color import bold

statement fails with
>>> from fabulous.color import bold Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\Python35\lib\site-packages\fabulous\color.py", line 31, in <module> from fabulous import utils, xterm256, grapefruit File "D:\Python35\lib\site-packages\fabulous\utils.py", line 25, in <module> import fcntl ImportError: No module named 'fcntl'

Nitpick: please specify the license of the fonts files.

Hi,

I'm packaging this module for Debian as part of a chain of dependencies for fedmsg, and sadly I had to repack the tarball as there was no license information for the fonts/ directory. Would it be possible to fix this?

There's no hurry though, as I'm going to use the system fonts anyway.

Named source 0.1.8.tar.gz

can you use the previous standard in the name please?
fabulous-0.1.8.tar.gz instance of 0.1.8.tar.gz

pip download URL down

The package was hosted on http://lobstertech.com, which now is down since a while. There are things like epub who depend on it in their requirements.txt. Could you please host it on Github? If you need help in maintaining the package etc.. please let me know.

Python 3 Support?

When installing with pip3 this fails because of the py2-style print commands. All of the documentation also uses py2 syntax.

What is the roadmap for python 3 support?

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.