Skip to main content

A small helper package for personal needs

Project description

Alyssum

this package contains my personal helpers if you want to use below the usage examples

Title

from alyssum.seperators import Title

title = Title(label='Default Text', length=80, color='yellow', design_char='*')
title.configure(label='Default Text', length=80,color='blue',design_char='*')

title.write() # writes "Default Text"
title.write("any title") # writes "any title"

title.configure(color=blue).write("any title") # can be usable

label length can not be greater than (length - 2)
color can be 'grey', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan' or 'white'
length must be greater than 1 and smaller than 81

Cleaner

from alyssum.cleaners import Cleaner
Cleaner.clean("Hello World!")

Decorators

from alyssum.decorators import run_once, run_only

@run_once
def hello():
    print("hello")

@run_only(2)
def hello():
    print("hello")

@run_once_message("It's come to end")
...

@run_only(3,"It's come to end"):
...

@run_only() 
...

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
alyssum-0.0.14-py3-none-any.whl (5.2 kB) Copy SHA256 hash SHA256 Wheel py3
alyssum-0.0.14.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page