Skip to main content

A module that will help you make tables look pretty.

Project description

PrettyTableX

PrettyTableX is a free module build to make boring arrays into good looking tables via the console.

To get it, all you have to do is type 'pip install PrettyTableX' in the terminal.

To use it, you have to type

from PrettyTable import PrettyTable

To use it, you first need an array. Then you can optionally give a header, row's indexes and column's indexes.

table = PrettyTable(ar=array)

Here are all the parameters you can put in PrettyTableX.

ar = Array

header: Takes a string. The header of the table.

row_index: Takes a boolean. If you want the rows to be indexed, turn this on.

row_indexes: Takes a list. After turning on row_index, you can give a list of the indexes they use. If you don't put a parameter here, then the indexes automatically become numbers.

column_indexes: Takes a list. If you want the columns to be indexed, then put the list here.

After putting your array into PrettyTable. You can use the dict_to_array or the tup_to_array if you need to change the non-array into an array.

If you want to see your array. Print the table.

If you want it prettified instead of normal. Run table.make_table_pretty() and then print the table.

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

prettytablex-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

prettytablex-0.1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file prettytablex-0.1.3.tar.gz.

File metadata

  • Download URL: prettytablex-0.1.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for prettytablex-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3b21b66a502edefb43412f93012b9f60843338091aaf849c9c6545f80d25178d
MD5 f1e55adea6e92b1d7378c7e1fe574836
BLAKE2b-256 999035ca4d0a706f6936c208c5a1b4e4aa8e39fe0d7e0cfa3ae710ebc6f8091b

See more details on using hashes here.

File details

Details for the file prettytablex-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: prettytablex-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for prettytablex-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e64b3ed366221499c8f0566904bf3a53cefc3f1f2e22e7deba725532a99274e3
MD5 c6da06cafbf808b1bc641b9927938a0c
BLAKE2b-256 69ecc1200288bdd637dcda4d7fd7bc3b18787f69282a9ea127818e69a2fd6761

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