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.

Source Distribution

alyssum-0.0.14.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

alyssum-0.0.14-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file alyssum-0.0.14.tar.gz.

File metadata

  • Download URL: alyssum-0.0.14.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for alyssum-0.0.14.tar.gz
Algorithm Hash digest
SHA256 57fda4f80cdf2f552f05188feeffcdd2fa8480a8e74618e603fbc5910eac0a99
MD5 8c2fe3e5a1b6aaece88e57d28ae6d115
BLAKE2b-256 3880c77adbf889f3141011cd5399514b8970b0fedcfdb32a6fcdaeba352d0e6f

See more details on using hashes here.

File details

Details for the file alyssum-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: alyssum-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for alyssum-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 214287816b1a4927108a8477940ca31d75320a5b2eb5ec38f73b48f1df78d57a
MD5 25b047e4d6efc0e54805717301b8190d
BLAKE2b-256 5272aa4372f2a0ddd47f072c374dccbcf6a9ad4a91e861adaf55f36b389cd673

See more details on using hashes here.

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