A library to print a welcome message in patterns
Project description
Welcome String
Welcome String is a Python library for printing the Title in patterns
Installation
Use the package manager pip to install Welcome-String.
pip install wstring
Usage
The wstring takes 1 argument and 4 optional arguments
# Printing Welcome with default arguments
from wstring import wstring
wstring.wString("Welcome")
The 4 optional arguments are length,height,symbol and color
# Printing Welcome with all 4 arguments
wstring.wString("Welcome", length=5, height=5, symbol='$', color='red')
Features
Color has been added to the welcome string which makes it more attractive. For now there are 5 different colors they are
- red
- green
- blue
- yellow
- purple
Users are allowed to pass the color name as an optional attribute, if the color you entered is not present in the mentioned above colors then it will print in the default color
- Windows --> black
- Linux --> white
Wstring is now platform independent and it works even in cmd in windows and terminal in linux
New exceptions has been included
- CharacterExpectedGotStringException
- EmptyCharacterFoundException
Test cases has been included
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.