Skip to main content

TabulateDockerPS

MIT License

TabulateDockerPS é um script Python que transforma a saída do comando docker ps em uma tabela formatada utilizando a biblioteca tabulate. Isso permite que a saída seja visualmente mais organizada e de fácil leitura. O script é simples de usar e pode ser instalado via pipx, tornando-o fácil de integrar em qualquer ambiente de desenvolvimento que utilize Docker.

Instalação

pipx install tabulatedockerps

Uso

Para utilizar o script, simplesmente redirecione a saída do comando docker ps para o script Python:

docker ps | tdps [--tablefmt TABLEFMT]

Exemplo de Saída

Ao executar o comando docker ps e passar a saída para o TabulateDockerPS, você obtém uma tabela formatada, com destaque para a coluna "Ports", que é dividida em várias linhas para facilitar a leitura dos múltiplos mapeamentos de portas. Veja o exemplo abaixo:

$ docker ps | tdps

+----------------+---------+--------------------------+----------------+---------------+------------------------+---------+
| CONTAINER ID   | IMAGE   | COMMAND                  | CREATED        | STATUS        | PORTS                  | NAMES   |
+================+=========+==========================+================+===============+========================+=========+
| 874ace075081   | ubuntu  | "bash -c 'while true…"   | 37 minutes ago | Up 37 minutes | 0.0.0.0:8080->8080/tcp | ubuntu  |
|                |         |                          |                |               | 0.0.0.0:80->80/tcp     |         |
+----------------+---------+--------------------------+----------------+---------------+------------------------+---------+

Formatos Suportados

O TabulateDockerPS suporta todos os formatos de saída oferecidos pela biblioteca tabulate. Isso inclui, mas não se limita a:

  • plain
  • grid
  • pipe
  • orgtbl
  • jira
  • presto
  • pretty
  • html
  • latex

Para uma lista completa de formatos, consulte a documentação do tabulate.

Contribuição

Contribuições são bem-vindas! Sinta-se à vontade para abrir issues e pull requests para melhorias ou correções.

Licença

Este projeto é distribuído sob a licença MIT. Para mais detalhes, consulte o arquivo LICENSE

Metadata

Release files for tabulatedockerps 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tabulatedockerps 0.3.0
File Size Uploaded Provenance Actions
tabulatedockerps-0.3.0.tar.gz 3.6 kB Without provenance Details for tabulatedockerps-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tabulatedockerps 0.3.0
File Interpreter ABI Platform Actions
tabulatedockerps-0.3.0-py3-none-any.whl Python 3 none any Details for tabulatedockerps-0.3.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / tabulatedockerps-0.3.0.tar.gz

Download URL tabulatedockerps-0.3.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9de5f63185ba9417d35f1af7525ba24709a2e86083d367e12b2fea3b028024ad
BLAKE2b-256 checksum
How to use checksums
05eb738a802b762d212ee1a710c8725f320267d0c712e4ab08d69092939b9959
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.12 Darwin/24.6.0

Release files / tabulatedockerps-0.3.0-py3-none-any.whl

Download URL tabulatedockerps-0.3.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f13e9301930c4809bf64d3006bff65d8b37a1559db6b05e59a69e18e76944929
BLAKE2b-256 checksum
How to use checksums
7181c7fe0defa61390cc5e248c136b67c52a5d40e5d18d32ed9cf9a168a1f6cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.12 Darwin/24.6.0

Security for tabulatedockerps 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page