Skip to main content

Python Common Client Library

Project description

clicommon

Python Common Client Library

Common Functions

bcheck

Checks variabled passwed defined a true or false, not defined is considered false
bcheck(variable) -> bool

mlog

General logging function mlog(msg_type, msg_string = None, exit_code = None, datelog = None, colors = None):

msg_type with corresponding Colors (if colors flat is True)
  INFO=GREEN
  SUCCESS=GREEN
  WARN=YELLOW
  WARNING=YELLOW
  FATAL=RED
  ERROR=RED
  CRITICAL=RED
  TEST=GRAY
  DEBUG=MAGENTA
  VERBOSE=BRIGHT_CYAN
  BUILD_DEBUG=BRIGHT_GREEN
  CODE_DEBUG=BRIGHT_GREEN

msg_string (anything)
  NOTE: If msg_string is not defined msg_type is considered the msg_string

exit_code if boolean is true after output exit

datelog if boolean is true add ISO8601 datetime to output

colors if boolean is true add ASCII colors to output bsaed on msg_type color codes

rcmd

Small function to run command sub process and return results rcmd (command)

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

clicommon-0.2.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clicommon-0.2.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file clicommon-0.2.1.tar.gz.

File metadata

  • Download URL: clicommon-0.2.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for clicommon-0.2.1.tar.gz
Algorithm Hash digest
SHA256 305ef909db66d877522f7cdbf97647fe7d1fd8170edf7c23d5ae0162759afde9
MD5 268bd19f6314f3804105d8e58cb481ff
BLAKE2b-256 a0e9c7bffa787d003d5cc4bdd7fc784910ffc827c6c18a9833456c333b2b43a6

See more details on using hashes here.

File details

Details for the file clicommon-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: clicommon-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for clicommon-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20b0e2773115bb3a608e5257430663fdc68bbed407be00bbc37c102bef25e64a
MD5 f6f8b5d0ffe1f6d0cbaa8657ac7f3e9a
BLAKE2b-256 3ae8c6c10e1829b7dac951572401705e59b8b3ebbd0749d86a57bb2fcae79bd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page