Skip to main content

tomark

A Python module that converts a list of dictionaries to a markdown formatted table.

Note: Each dict in the list must have the same number of elements.

Installing

!python3 -m pip install --upgrade tomark

Usage:

from tomark import Tomark

data = [
  {
    'pr': 291, 
    'status': 'closed', 
    'date': 'None', 
    'title': 'Adds new wiz bang feature'
  },
  {
    'pr': 290, 
    'status': 'v1.0', 
    'date': 'None', 
    'title': 'Updates UI to be more awesome'
  }
]

markdown = Tomark.table(data)
print(markdown)

Example table output:

PR Status Date Title
292 open None Adds new wiz bang feature
286 v1.0 None Updates UI to be more awesome

Example raw ouput:

| PR  | Status | Date | Title |
|----|----|----|----|
| 292 | open | None | Adds new wiz bang feature |
| 286 | v1.0 | None | Updates UI to be more awesome |

Metadata

Release files for tomark 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tomark 0.1.4
File Size Uploaded
tomark-0.1.4.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tomark 0.1.4
File Interpreter ABI Platform
tomark-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / tomark-0.1.4.tar.gz

Download URL tomark-0.1.4.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
437f36f72621bdeb0897d655dd0f319520c39973977314b848de2491eaf2e740
BLAKE2b-256 checksum
How to use checksums
902ea77c34300addeb847900e1fa73225b725a93da0226bbe26d3394bfcfdcc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release files / tomark-0.1.4-py3-none-any.whl

Download URL tomark-0.1.4-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0b18f3cc7e1d6312ec3efa5d032b2a48bd24b079a5e91439a37e27c9c9b1455
BLAKE2b-256 checksum
How to use checksums
a6f981cfdc5ae6469f897de228392f87844a6860f68ea651ebbb9ca30b8fbfd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

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