Skip to main content

A library for converting a HTML tables into ASCII tables, rowspan and colspan allowed!

Project description

dashtable has functions for converting data to reStructuredText tables and Markdown tables, as well as methods for generating data from these text-tables.

Methods

html2rst:

Convert html table to RST grid table

html2md:

Convert html table to Markdown table

data2md:

Convert a list of lists of strings to Markdown Table

data2rst:

Convert a list of lists of strings to RST grid Table

data2md:

Convert a list of lists of strings to a Markdown Table

data2simplerst:

Convert a list of lists of strings to a simple RST Table

grid2data:

Convert an RST grid table to data

simple2data:

Convert a simple RST table to data

Installation

dashtable can be installed using pip:

sudo pip install dashtable

Depending on how you’d like to use dashtable, you may need to install some dependencies.

Dependencies

Several of the functions in dashtable have no outside requirements. However, for the following functions you will need to install certain dependencies:

html2rst:

BeautifulSoup,

html2md:

BeautifulSoup

html2data:

BeautifulSoup,

grid2data:

docutils

simple2data:

docutils

Usage

Complete documentation on usage can be found on Read the Docs.

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

dashtable-1.4.2.tar.gz (19.9 kB view details)

Uploaded Source

File details

Details for the file dashtable-1.4.2.tar.gz.

File metadata

  • Download URL: dashtable-1.4.2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dashtable-1.4.2.tar.gz
Algorithm Hash digest
SHA256 a766d47d2d260d12d7f9ea8c9d108ad29121cb5392d033a1d846ad5ab2765d26
MD5 02bcb0ecfe0a2db1a6d5289ad7906442
BLAKE2b-256 dd5988a7bbde10acc24cdfc854c57e80154a9c76722fa1e38c04b8b08e43efa9

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