ogaskell / cli-essentials

Essential features aimed at making your Python projects a little bit better.

Home Page:https://pypi.org/project/cli-essentials/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI Essentials

Essential pieces of code aimed at making your Python projects a little bit better.

MIT Licence PyPi Version Python Version Downloads

Installation

$ python -m pip install cli-essentials

Usage

from CLI import <feature> # This will import only one feature of your choosing
# --or--
from CLI import <feature1>, <feature2>, ... # This will import as many features as you would like
# --or--
from CLI import * # This will import all CLI features

Feature List

  • Clear

    from CLI import clear
    
    print("Hello World!") # "Hello World!" is printed to the console
    clear() # The console is clear again
  • Print

    from CLI import print # This will not effect existing print functions in your program
    
    print("Apple", color="red") # "Apple" is printed to the console with a Red foreground color
    print("Sky", color="blue", bcolor="white") # "Sky" is printed in Blue with a White background

About

Essential features aimed at making your Python projects a little bit better.

https://pypi.org/project/cli-essentials/

License:MIT License


Languages

Language:Python 100.0%