Skip to main content

docker cli with python

Project description

mysqltop

Package version downloads
Supported Python versions GitHub

简体中文 | English

介绍

这个工具是 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


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 hashes)

Uploaded Source

Built Distribution

mysqltop-0.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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