Skip to main content

Python CLI building essentials

Project description

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
    

    Color Chart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli-essentials-0.0.4.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

cli_essentials-0.0.4-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page