Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

ansi-python

  • Get colors and styles in your console. Inspired by colors.js
  • Too lazy to upload this to pip rn. Download /ansi directory and import it directly.

Functions:

Text colors (ansi.fg.<color>)

  • black()
  • purple()
  • red()
  • green()
  • yellow()
  • blue()
  • magenta()
  • cyan()
  • white()
  • grey() or gray()

Text colors but brighter (ansi.fg.<color>)

  • bright_red()
  • bright_green()
  • bright_yellow()
  • bright_blue()
  • bright_magenta()
  • bright_cyan()
  • bright_white()

Background colors (ansi.bg.<color>)

  • black()
  • purple()
  • red()
  • green()
  • yellow()
  • blue()
  • magenta()
  • cyan()
  • white()
  • gray() or grey()

Background colors but brighter (ansi.bg.<color>)

  • bright_red()
  • bright_green()
  • bright_yellow()
  • bright_blue()
  • bright_magenta()
  • bright_cyan()
  • bright_white()

Style (ansi.<style>)

  • reset()
  • bold()
  • dim()
  • italic()
  • underline()
  • inverse()
  • hidden()
  • strikethrough()

Extras (ansi.<extras>)

  • rainbow()
  • zebra()
  • trap()
  • freaky()

Example

importansi# colors >print(ansi.fg.black("Indent")) # outputs blackprint(ansi.bg.purple("Vein")) # outputs purple# style >print(ansi.italic('hello?')) # outputs italicprint(ansi.inverse('Boo!')) # outputs inverse# extras >print(ansi.zebra('crossing')) # outputs zebra colorprint(ansi.freaky('freaky vro')) # outputs 𝓯𝓻𝓮𝓪𝓴𝔂 style

About

Get colors and styles in your console. Inspired by colors.js

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages