Abhishek8394 / lol-cat-py

Enhanced python port of the classic lolcat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This is inspired from lolcat orginally made in ruby. This project is available on pypi as a python package.

Note: Works on linux ,mac, cygwin and presumably on win 10+ cmd lines, outputs plain text if terminal support not found. Also works on Windows Terminal.

Installation

pip install lolpython

Usage

1. From code

from lolpython import lol_py 

text = "Lorem ipsum..."
lol_py(text)

colourful output echoed

2. From cmd line

lolpython --inp-file "rainbow_this_file.txt"

# if want to do interactive
>> lolpython
>>.. lorem ipsum
>>.. hello world
>>.. [ctrl+d]
>> # rainbow version of the input typed so far

About

Enhanced python port of the classic lolcat

License:GNU General Public License v3.0


Languages

Language:Python 100.0%