New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fish

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fish

Animating fish (and birds) for progress bars

  • 1.1
  • PyPI
  • Socket score

Maintainers
1

Ever wanted to have animating fishes for progress bars in your command-line script?

Ever thought about doing it but then realizing you have better things to do with your time than to write meaningless ASCII animation programs?

Now you can have the best of both worlds: introducing fish, the module that makes any program look awesome and display useful data while churning away on some good 'ole data.

Usage? Simple enough::

>>> import fish
>>> while churning:
...     churn_churn()
...     fish.animate()

As a boy, I often dreamed of birds going back and forth as progress bars, so I decided to implement just that::

>>> import fish
>>> bird = fish.Bird()
>>> while churning:
...     churn_churn()
...     bird.animate()

Want to show the current record number?::

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

Want to show numeric progress when you know the total number?::

>>> from fish import ProgressFish
>>> fish = ProgressFish(total=len(data))
>>> for i, datum in enumerate(data):
...     churn_churn()
...     fish.animate(amount=i)

See a demo on YouTube__.

__ http://www.youtube.com/watch?v=xYeG5CVTCmk

The default fish is a simple bass at a pretty good velocity for an ASCII fish.

Possibilities are endless here, gentlemen:

The only limit is yourself.

-- zombo.com

Fork on GitHub__

__ http://github.com/lericson/fish

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc