Skip to main content

dashtable-ext

Shitty Extension to doakey3/DashTable

Installation

$ pip install -U dashtable-ext

RST 2 ASCII:

+-----------+-----------+-----------------------+
| Heading 1 | Heading 2 | Heading 3             |
|           +-----------+-----------+-----------+
|           | Heading 4 | Heading 5 | Heading 6 |
+===========+-----------+-----------+-----------+
| A         | B         | C                     |
|           +-----------+                       |
|           | D         |                       |
|           +-----------+-----------+-----------+
|           | E         | F         | G         |
+-----------+-----------+-----------+-----------+
| H                     | I         | J         |
+-----------------------+-----------+           |
| K                     | L         |           |
|                       +-----------+-----------+
|                       | M         | N         |
+-----------------------+-----------+-----------+
from dashtable.ext import rst2ascii, PresetStyle
import dashtable

with open("table.html", "r") as f:
    html = f.read()

table = dashtable.html2rst(html)
print(rst2ascii(table = table, preset=PresetStyle.thin_thick_rounded))

Output:

╭───────────┬───────────┬───────────────────────╮
│ Heading 1 │ Heading 2 │ Heading 3             │
│           ├───────────┼───────────┬───────────┤
│           │ Heading 4 │ Heading 5 │ Heading 6 │
├━━━━━━━━━━━┼───────────┼───────────┴───────────┤
│ A         │ B         │ C                     │
│           ├───────────┤                       │
│           │ D         │                       │
│           ├───────────┼───────────┬───────────┤
│           │ E         │ F         │ G         │
├───────────┴───────────┼───────────┼───────────┤
│ H                     │ I         │ J         │
├───────────────────────┼───────────┤           │
│ K                     │ L         │           │
│                       ├───────────┼───────────┤
│                       │ M         │ N         │
╰───────────────────────┴───────────┴───────────╯

Metadata

Release files for dashtable-ext 1.0.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 dashtable-ext 1.0.0
File Size Uploaded
dashtable-ext-1.0.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dashtable-ext 1.0.0
File Interpreter ABI Platform
dashtable_ext-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / dashtable-ext-1.0.0.tar.gz

Download URL dashtable-ext-1.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d8f70854cacc33377b498bbc4dcca1244edee289f4d923a45b5ad3c2ceceafd2
BLAKE2b-256 checksum
How to use checksums
b6b813dedb372e651d7f660013e9c6122cc59536754df4d15ba822899827c42f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / dashtable_ext-1.0.0-py3-none-any.whl

Download URL dashtable_ext-1.0.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49cb567ec3ef3fcb5911d89504adfe587d27647df486ff180c27a72ca8b46a29
BLAKE2b-256 checksum
How to use checksums
2fd5ccf1859b6cbb36c791e0f5ad563429cefbab77ec12e7bea8f374032d738a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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