Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

barify

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barify

generate text progress bar for given values

  • 0.1.6
  • PyPI
  • Socket score

Maintainers
1

A simple library to generate text progress bars for given values.

To install:

pip install barify

Example:

from barify import barify

print barify(84)

Prints out:

[||||||||--]

Here are the available optional arguments:

  • min_value: The minimum value in the interval of the passed value. Default is 0.
  • max_val: The maximum value in the interval of the passed value. Default is 100.
  • delimiters: A 2 character string; left character is used for the left delimiter of the progress bar, and right character is used for the right delimiter of the progress bar. Default is '[]'
  • bar: A 1 character string; character to use to represent a full bar. Default is '|'
  • empty: A 1 character string; character to use to represent an empty bar. Default is '-'
  • num_bars: The number of bars (both full and empty) that should compose the progress bar. Default is 10.

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