No project description provided
Project description
┏━━━━┓┏━━━┓ ┏━┓ ┏┓┏━━━┓ ┏┓ ┏┓ ┏┓ ┃┏┓┏┓┃┃┏━┓┃ ┃ ┗┓┃┃┃┏━┓┃ ┃┃ ┃┗┓┏┛┃ ┗┛┃┃┗┛┃┃ ┃┃ ┃┏┓┗┛┃┃┃ ┗┛ ┃┃ ┗┓┗┛┏┛ ┃┃ ┃┗━┛┃ ┃┃┗┓ ┃┃┃┏━┓ ┃┃ ┏┓ ┗┓┏┛ ┃┃ ┃┏━┓┃ ┃┃ ┃ ┃┃┗┻━┃ ┃┗━┛┃ ┃┃ ┗┛ ┗┛ ┗┛ ┗┛ ┗━┛┗━━━┛ ┗━━━┛ ┗┛ Big Thanks to @salt for helping me out. """ IF THE TEXTS HERE ARE SCRAMBLED IT IS PROBABLY BECAUSE OF THE SOFTWARE YOU USED TO VIEW THIS FILE, INSIDE PYTHON EVERYTHING WILL BE OK. CHECK THE GITHUB PAGE TO VIEW IT BETTER """
To install it simply use
pip install tangly
Then to import it we use:
import tangly
See what we can do to display a table with students and scores:
people = [["Name", "Last Name", 'Age', "Number"],
["Nath", "Dezem", '20', '137'],
["Rafa", "Rayes",'19', '4976'],
['Johny', 'Dias', '22', '1234']]
Here we defined our list of students and their respective scores. To display this as a table we use the 'table()' command:
print_table(my_list)
This will be the output:
┌───────┬──────────────────────────┐
│ Name │ Last Name Age Number │
├───────┼──────────────────────────┤
│ Nath │ Dezem 20 137 │
│ Rafa │ Rayes 19 4976 │
│ Johny │ Dias 22 1234 │
└───────┴──────────────────────────┘
You can controll which collumns and rows are separated using a similar nested list, like so [[0,2],[0,1]]. By default this is [[0],[0]] which means only the first row and first collumn are separated.
table(my_list, [[0,2],[0,1]] )
This will be the output:
┌───────┬───────────┬──────────────┐
│ Name │ Last Name │ Age Number │
├───────┼───────────┼──────────────┤
│ Nath │ Dezem │ 20 137 │
│ Rafa │ Rayes │ 19 4976 │
├───────┼───────────┼──────────────┤
│ Johny │ Dias │ 22 1234 │
└───────┴───────────┴──────────────┘
This was done in 2019 when I was learning python, im sure no one will ever do this. I updated it now because I was too ashamed of my old code.
Current version = 2.1.1
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 Distributions
Built Distribution
File details
Details for the file tangly-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: tangly-3.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea40f30b4a955ffaa5f58a670b46dd2f92ac24077f13dcae98239f4d666a419 |
|
MD5 | 37754efebd42d01ee15b7ed9c0d1ce0a |
|
BLAKE2b-256 | e1cbe74484b5ec3b45c02d29c3679eee944569adf290bd014352b67b31c2836b |