Skip to main content

Simple python module to colour text

Project description

Available Colors

Python Niram

This is a simple module to get coloured text in linux, max , and also in android termux (not supported in windows CMD)

Installation

Using pypi

You can install Niram using pypi. Execute..

python3 -m pip install Niram

Using setup.py

You can install Niram module by source code. Download source code from Link is not available. Checkout Github instead

Download the zip file and unzip the file.(Use unzip command) Then execute setup.py install.

cd Niram-1.0.4
python3 setup.py install

Usage

from Niram import Colours
obj = Colours() # Create a object
# Print using print() method
obj.print("Your Text Goes here",110) # 110 is the colour code
obj.print(["Hi","How are you?","Checkout niram"],[22,119,220],seperator="\n") # print multiple text with multiple colours
# Get formatted string using colour() method
txt = obj.colour(273,"Your text goes here") # returns the string representing the coloured text
print(txt) # Print the formatte text
txt2 = obj.format(["Example","Formatting"],[80,51],seperator=", ",end=" - Niram") # Gives foramted string with multiple colors
print(txt2)

This will return the formated text here colour_code is a number of the colour get it by executing

python3 -m Niram -c

This will list out all colours and responsible number Second argument is your text and third argument "second" is the background colour or any other colour you need

Available Colors

Available Colors

Requirements

This module don't need any additional requirements

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

Niram-1.0.5.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

Niram-1.0.5-py3-none-any.whl (5.2 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