srecli is a click based CLI tool to cater common SRE related system automation tasks.
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file srecli-0.0.7.tar.gz.
File metadata
- Download URL: srecli-0.0.7.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3be89c022b3de6a94e6a7d7a7baec2c5186c4d9a84996dc936087a5dcdf5df7b
|
|
| MD5 |
265e7a71a6b91c708db939acd51b7f73
|
|
| BLAKE2b-256 |
24e08d2efb5de22ba10143e20681626e2fb5248742440fb923b7dcfe9d040b9d
|
File details
Details for the file srecli-0.0.7-py3-none-any.whl.
File metadata
- Download URL: srecli-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5537273f084f98ce3dbe8f02e92264a89c4097356a41788bf2dfa29cff05e046
|
|
| MD5 |
86c717385f6c73b84bda860cd6cd3199
|
|
| BLAKE2b-256 |
df2207748c5026a1cd59b721401f7cdb650edca5e16c78ba986cbe5b6883b1e5
|