tomark


Nametomark JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/codazoda/tomark
SummaryConvert a list of dictionaries to a markdown formatted table.
upload_time2018-09-20 02:20:26
maintainer
docs_urlNone
authorJoel Dare
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 |

```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/codazoda/tomark",
    "name": "tomark",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Joel Dare",
    "author_email": "joel@joeldare.com",
    "download_url": "https://files.pythonhosted.org/packages/90/2e/a77c34300addeb847900e1fa73225b725a93da0226bbe26d3394bfcfdcc8/tomark-0.1.4.tar.gz",
    "platform": "",
    "description": "# tomark\n\nA Python module that converts a list of dictionaries to a markdown formatted table.\n\nNote: Each dict in the list must have the same number of elements.\n\nInstalling\n\n`!python3 -m pip install --upgrade tomark`\n\nUsage:\n\n```\nfrom tomark import Tomark\n\ndata = [\n  {\n    'pr': 291, \n    'status': 'closed', \n    'date': 'None', \n    'title': 'Adds new wiz bang feature'\n  },\n  {\n    'pr': 290, \n    'status': 'v1.0', \n    'date': 'None', \n    'title': 'Updates UI to be more awesome'\n  }\n]\n\nmarkdown = Tomark.table(data)\nprint(markdown)\n```\n\nExample table output:\n\n| PR  | Status | Date | Title |\n|----|----|----|----|\n| 292 | open | None | Adds new wiz bang feature |\n| 286 | v1.0 | None | Updates UI to be more awesome |\n\nExample raw ouput:\n\n```\n| PR  | Status | Date | Title |\n|----|----|----|----|\n| 292 | open | None | Adds new wiz bang feature |\n| 286 | v1.0 | None | Updates UI to be more awesome |\n\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Convert a list of dictionaries to a markdown formatted table.",
    "version": "0.1.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8a5d50b78a677ac6d28c721c90dbe6d3",
                "sha256": "e0b18f3cc7e1d6312ec3efa5d032b2a48bd24b079a5e91439a37e27c9c9b1455"
            },
            "downloads": -1,
            "filename": "tomark-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8a5d50b78a677ac6d28c721c90dbe6d3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2346,
            "upload_time": "2018-09-20T02:20:23",
            "upload_time_iso_8601": "2018-09-20T02:20:23.718697Z",
            "url": "https://files.pythonhosted.org/packages/a6/f9/81cfdc5ae6469f897de228392f87844a6860f68ea651ebbb9ca30b8fbfd5/tomark-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "8546a6710b1cea6ef5872f1074522865",
                "sha256": "437f36f72621bdeb0897d655dd0f319520c39973977314b848de2491eaf2e740"
            },
            "downloads": -1,
            "filename": "tomark-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8546a6710b1cea6ef5872f1074522865",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2002,
            "upload_time": "2018-09-20T02:20:26",
            "upload_time_iso_8601": "2018-09-20T02:20:26.438900Z",
            "url": "https://files.pythonhosted.org/packages/90/2e/a77c34300addeb847900e1fa73225b725a93da0226bbe26d3394bfcfdcc8/tomark-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-09-20 02:20:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "codazoda",
    "github_project": "tomark",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tomark"
}
        
Elapsed time: 0.88868s