docker cli with python
Project description
mysqltop
介绍
这个工具是 docker 官方命令行工具的补充版本,可以人类友好的方式输出容器信息,增加可读性
⭐️ 🌟 ✨ ⚡️ ☄️ 💥
安装
软件包已经上传到 PyPI: mysqltop
可以直接使用 pip 安装:
pip install mysqltop
依赖
- Python : 3.8 及以上
文档
📄 暂无
示例
查看容器运行状态
可以在终端输入: mysqltop shell -h 192.168.31.245 -uroot -p123456
输出如下:
Connecting to host: 192.168.31.245, user: root, port: 3306
+--------+-----------------+----------------------+--------+--------+-------+------------------------+------------------+
| 连接ID | 用户 | 主机 | 数据库 | 命令 | 时间 | 状态 | 信息 |
+--------+-----------------+----------------------+--------+--------+-------+------------------------+------------------+
| 5 | event_scheduler | localhost | | Daemon | 16047 | Waiting on empty queue | |
| 10 | root | 192.168.31.245:40022 | | Sleep | 3948 | | |
| 73 | root | 192.168.31.245:57088 | | Query | 0 | init | SHOW PROCESSLIST |
+--------+-----------------+----------------------+--------+--------+-------+------------------------+------------------+
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mysqltop-0.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file mysqltop-0.0.1.tar.gz
.
File metadata
- Download URL: mysqltop-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 306c270d9835b250c163bce98f921562622cb09e01f0beb00722df08d1ac3fc9 |
|
MD5 | 9e1932b4d24d40d104e1bd17ada8d5a9 |
|
BLAKE2b-256 | 2755f959b0fa0563726fee15d0c01a85331da5e402e61694e054e98ca459b5a5 |
File details
Details for the file mysqltop-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mysqltop-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d48ab2d69be775182829528ff90bf5709ae9dad05013ed2de6c496f701c675 |
|
MD5 | fdc7784c61055165d9ea7cd81b3f54be |
|
BLAKE2b-256 | f8d0e5e3c8dec72b24c79ba70dfa8a8862f51bf750d0252e9735db58f5191ea3 |