A fancy print
Project description
flash_msg
from flashmsg import flash_msg
--------------------------------------------------
#### Example 0
flash_msg(['Hello World'])
Output:
***********************
***** Hello World *****
***********************
--------------------------------------------------
# Example 1
flash_msg(msg=['Hello World',"I hope you find the flash message useful"],
sign='#',
bar_length=7,
bar_name='Example 1')
Output:
############################################################################
####### Example 1 ####### Hello World #######
######################### I hope you find the flash message useful #######
############################################################################
--------------------------------------------------
# Example 2
flash_msg(msg=['Very important message',"Clowns = Peter",'Specs: Shoes = 49, Costume=L'],
sign="***",
bar_length=2,
bar_name='Fancy',
color='red')
Output:
*******************************************************
****** Fancy ****** Very important message ******
******************* Clowns = Peter ******
******************* Specs: Shoes = 49, Costume=L ******
*******************************************************
--------------------------------------------------
# Example 3
import random
import string
from random import randint
def randomString(stringLength=10):
"""Generate a random string of fixed length """
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(stringLength))
msg = [ randomString(randint(0, 50)) for i in range(10)]
flash_msg(msg=msg,
sign="/*-//-*/",
bar_length=2,
bar_name='Stranger Things',
color='green')
Output:
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//
/*-//-*//*-//-*/ Stranger Things /*-//-*//*-//-*/ zzafthrdjhnqytpntowqwzkhrnpdsplrfzcysycahipbuuzaho /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// dmvnqpvbeefcdmxwmvszmrbpvlqtflfizedvlwowgiqxejyp /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// yshxpnbmdgdzbmzvrxhpuxmyztitrlqnuycofhe /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// xmakikkyhplqgolngidjowoodqaaxuoep /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// yyocmmplpbclnfupchckcifq /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// pd /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// cxrizdltioikxdvzthrzkpmabca /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// lktvubqhowwvkkpdjapkfwyvztvxaszgirrfuib /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// kswlznwq /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*// vvoxgndmxmriba /*-//-*//*-//-*/
/*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//-*//*-//
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.
Source Distribution
flashmsg-0.2.1.tar.gz
(3.0 kB
view details)
File details
Details for the file flashmsg-0.2.1.tar.gz.
File metadata
- Download URL: flashmsg-0.2.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ccedda24ba8ed6512e35707fd1aa884dfcbd57a04002309d02237cb4cb212bc
|
|
| MD5 |
185651ed3a3faab7138aea2201a063ab
|
|
| BLAKE2b-256 |
6c4ddbaa68c916653409e8e901cb62e9433dada2d4a524e0ed40f8e52888ea14
|