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.2.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.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clicommon-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 3cb094ffacae08f2e8cf8ac74efaa896f9c2201b75bd7a4350c599518f907b8b
MD5 b538bd0ebb36d6a9d4e58b53d3364cc6
BLAKE2b-256 13931f02467d51223d50fe22567427cf7110a42f831f27ce35b4a50de113de21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clicommon-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e68bd5b0a3f738be3031410e6aca7abe483d571d870a2aa793dc58b546fa3783
MD5 c16386bfec16e28d11fd4468499c5dd0
BLAKE2b-256 1afe0ca16eb4efa2d81e5d7c46c69522cae486a932c597452c80cd964a0907e6

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