Skip to content

ldpgh/pyMiniSupport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

pyMiniSupport

The module contains helper functions needed in my projects.

Install ... mit ODER ohne GIT

Short description of the functions

If the package colorama is installed the loggin functions are

  • info -> default color (bright)
  • warn -> yellow
  • error -> red

according their meaning.

Functions for logging

  • info
  • warn
  • error ... does not (yet) stop the program execution

Functions for progam trace

  • prog_line
  • prog_file
  • prog_file_line

Use case ... see simple test run

pyMiniSupport>>
pyMiniSupport>>python -c "from pyMiniSupport.Log import *;  warn('one liner warns you')"

WARNING  @  <module>:1   'one liner warns you'

pyMiniSupport>>python -c "from pyMiniSupport.Log import *;  error('one liner informs about error')"

ERROR  @  <module>:1   'one liner informs about error'

pyMiniSupport>>python -c "from pyMiniSupport.Log import *;  info('one liner informs you')"

INFO  @  <module>:1   'one liner informs you'

pyMiniSupport>>
pyMiniSupport>>
pyMiniSupport>>python -c "import pyMiniSupport.Tests.testLog"

runTest (pyMiniSupport.Tests.testLog.TestLog) ...
INFO  @  runTest:14   'test of pyMiniSupport.info'

WARNING  @  runTest:15   'test of pyMiniSupport.warn'

ERROR  @  runTest:16   'test of pyMiniSupport.error'

17

runTest

runTest:19
ok

----------------------------------------------------------------------
Ran 1 test in 0.047s

OK

pyMiniSupport>>
pyMiniSupport>>

About

functions usefull in every of my projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages