Skip to main content

Librería para imprimir tablas

Project description

Para imprimir tu tabla simplemente tienes que crear tu tabla y mandar a llamar a la función, puedes colocar un título a la tabla el cual si lo colocas se imprimirá primero el título y después la tabla, la tabla se imprime con el estilo de salida de MySQL.

Ejemplo de uso:

from ERlib import printTable

TituloDeLaTabla = "Los equipos con más Champions League"

Tabla = [ ["Posición", "Equipo", "Títulos"], ["1°", "Real Madrid Club de Fútbol", 14], ["2°", "Associazione Calcio Milán", 7], ["3°", "Bayern de Múnich", 6], ["4°", "Liverpool Fútbol Club", 6], ["5°", "Fútbol Club Barcelona", 5] ]

printTable(Tabla, TituloDeLaTabla)

Salida:

****** Los equipos con más Champions League ******* +----------+----------------------------+---------+ | Posición | Equipo | Títulos | +----------+----------------------------+---------+ | 1° | Real Madrid Club de Fútbol | 14 | +----------+----------------------------+---------+ | 2° | Associazione Calcio Milán | 7 | +----------+----------------------------+---------+ | 3° | Bayern de Múnich | 6 | +----------+----------------------------+---------+ | 4° | Liverpool Fútbol Club | 6 | +----------+----------------------------+---------+ | 5° | Fútbol Club Barcelona | 5 | +----------+----------------------------+---------+

Project details


Release history Release notifications | RSS feed

This version

1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ERlib-1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

ERlib-1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file ERlib-1.tar.gz.

File metadata

  • Download URL: ERlib-1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for ERlib-1.tar.gz
Algorithm Hash digest
SHA256 2737dab510791263422a993c25ea8000c445461aadb348957ea23d5da3c664b8
MD5 42d51b94ba70099d80b1e524a2845255
BLAKE2b-256 3641b797891b3e78e7d9ce06d3fbd79ada581a071145715234953fc59dffeb09

See more details on using hashes here.

File details

Details for the file ERlib-1-py3-none-any.whl.

File metadata

  • Download URL: ERlib-1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for ERlib-1-py3-none-any.whl
Algorithm Hash digest
SHA256 af64af70ea5ae72da16dac8326b92ccca0825d5c1e210737ba96724db0f4cdc7
MD5 1a49cb0a843e5f4c2f6a595c5c31ccc1
BLAKE2b-256 e6e0e1cf339c206c846ce827eb6f5f01a8472323469da1cb8ca9ab2f94313d3d

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