Convert a list of dictionaries to a markdown formatted table.
Project description
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 |
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tomark-0.1.4.tar.gz.
File metadata
- Download URL: tomark-0.1.4.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
437f36f72621bdeb0897d655dd0f319520c39973977314b848de2491eaf2e740
|
|
| MD5 |
8546a6710b1cea6ef5872f1074522865
|
|
| BLAKE2b-256 |
902ea77c34300addeb847900e1fa73225b725a93da0226bbe26d3394bfcfdcc8
|
File details
Details for the file tomark-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tomark-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b18f3cc7e1d6312ec3efa5d032b2a48bd24b079a5e91439a37e27c9c9b1455
|
|
| MD5 |
8a5d50b78a677ac6d28c721c90dbe6d3
|
|
| BLAKE2b-256 |
a6f981cfdc5ae6469f897de228392f87844a6860f68ea651ebbb9ca30b8fbfd5
|