Skip to main content

CLI tool for common SRE related work

Project description

Srecli

srecli is a click based CLI tool to cater common SRE related system automation tasks.

Installation

Use the package manager pip to install srecli.

pip install srecli

Usage

Show status

srecli show status
2023/05/29 15:41:44 UTC | INFO     | This is info msg
2023/05/29 15:41:44 UTC | WARNING  | This is warning msg
2023/05/29 15:41:44 UTC | ERROR    | This is error msg
2023/05/29 15:41:44 UTC | CRITICAL | This is critical msg
2023/05/29 15:41:44 UTC | SUCCESS  | This is success msg
echo msg: Hello

Show status with debug

srecli show status --debug
2023/05/29 15:43:45 UTC | DEBUG    | srecli.commands.cmd_status.show:39 | PID=1966 | This is debug msg
2023/05/29 15:43:47 UTC | INFO     | srecli.commands.cmd_status.show:41 | PID=1966 | This is info msg
2023/05/29 15:43:47 UTC | WARNING  | srecli.commands.cmd_status.show:42 | PID=1966 | This is warning msg
2023/05/29 15:43:47 UTC | ERROR    | srecli.commands.cmd_status.show:43 | PID=1966 | This is error msg
2023/05/29 15:43:47 UTC | CRITICAL | srecli.commands.cmd_status.show:44 | PID=1966 | This is critical msg
2023/05/29 15:43:47 UTC | SUCCESS  | srecli.commands.cmd_status.show:45 | PID=1966 | This is success msg
echo msg: Hello

Show status with custom message

srecli show status --echo-msg "Hello from Srecli"
2023/05/29 15:41:44 UTC | INFO     | This is info msg
2023/05/29 15:41:44 UTC | WARNING  | This is warning msg
2023/05/29 15:41:44 UTC | ERROR    | This is error msg
2023/05/29 15:41:44 UTC | CRITICAL | This is critical msg
2023/05/29 15:41:44 UTC | SUCCESS  | This is success msg
echo msg: Hello from Srecli

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

srecli-0.0.6.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

srecli-0.0.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file srecli-0.0.6.tar.gz.

File metadata

  • Download URL: srecli-0.0.6.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for srecli-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7635b0fce3432188cdf023328deed6ef094bc8668f89699e91ccc0a5d28e29bb
MD5 ab050367cb2380e3dbbff408edc5717a
BLAKE2b-256 4f2a70b41410ef0fcbc8b101ab6d70f6b2e4072a843afcd82cdb3576f4250e67

See more details on using hashes here.

File details

Details for the file srecli-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: srecli-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for srecli-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0e658f70aaaf4ce6457b6be80808a2c945f7dda3552cb989a9878f2012de3f
MD5 8b44a91ca52a84f217abaac722e1fbaf
BLAKE2b-256 d99d4a2d3f950bfe728402f8a461f7f461be3240193099a64cb60b65a2dea8b2

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