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

faye

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faye

Basic logging library with a customizable log message and progress bar!

  • 0.1.11
  • PyPI
  • Socket score

Maintainers
1

Basic logging library with a customizable log message and progress bar!

The best way to utilize the Faye library is by installing via pip. You can install the library by running the following command:

pip install faye

Usage

The library is currently limited due to it being updated on a necessity basis, but there are a few examples below to help with using it.

# Import the Faye library
from faye import Faye

# Prints a "CRITICAL" log message to stdout
print(Faye.log(msg="Faye is awesome!", level="CRITICAL"))

# You can also use integer values for the level
print(Faye.log(msg="Faye is awesome!", level=5))

# Currently supported levels:
# - TRACE (0)
# - DEBUG (1)
# - INFO (2)
# - WARNING (3)
# - ERROR (4)
# - CRITICAL (5)

# You can add a splash of color to the logging as well
print(Faye.log(msg="Faye is awesome!", level="CRITICAL", color=True))

# Prints a basic progress bar to stdout
print(Faye.progress(total=100, description="Downloading..."))

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