Giter VIP home page Giter VIP logo

fish's People

Contributors

apreche avatar chmullig avatar garrison avatar jnordberg avatar lericson avatar nickedes avatar nyanshell 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fish's Issues

does not even work

This was made for python 2 ๐Ÿ’€
I wanted to test this out, but get errors form fish

Broken on bpython?

>>>import fish
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/sw/lib/python2.7/site-packages/fish.py", line 274, in <module>
    default_fish = Fish()
  File "/sw/lib/python2.7/site-packages/fish.py", line 71, in __init__
    world_length = get_term_width() or 79
  File "/sw/lib/python2.7/site-packages/fish.py", line 43, in get_term_width
    return unpack("hh", ioctl(fp.fileno(), TIOCGWINSZ, "    "))[1]
AttributeError: 'FakeStdin' object has no attribute 'fileno'

all I did was pip install fish

example showing current record number does not work without total

This is based on the example in the README file:

from fish import ProgressFish
fish = ProgressFish()

churning = ['a', 'b', 'c']

def churn_churn():
    pass

for i, x in enumerate(churning):
    churn_churn()
    fish.animate(amount=i)

The output is

Traceback (most recent call last):
  File "./test.py", line 12, in <module>
    fish.animate(amount=i)
  File ".../tmp/fish/fish.py", line 166, in animate
    return super(ProgressableFishBase, self).animate(*args, **kwds)
  File ".../tmp/fish/fish.py", line 91, in animate
    step = self.worldstep.next()
  File ".../tmp/fish/fish.py", line 259, in worldstep_progressive
    part = self.amount / float(self.total)
TypeError: float() argument must be a string or a number

If I add a total to the ProgressFish creation, then it works.

not work for Windows

since fcntl and termios are not availble on windows, this fish can not swim in windows dos prompt. What a pity

setup fail

Setup fail because Readme filename changed

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.