{ "info": { "author": "Renaud Viot", "author_email": "renaud.viot@simply-bi.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pretty_html_table - Beautiful html tables made easy\nDetailed usage documentation is still in progress\nThe objective of this package is to convert a pandas dataframe into a pretty html table.\nAs of now, 10 colors are available. This package is embedding very nicely with other packages used to send emails.\nThe format is set down to the line item, which allows it to be understood by every email providers (instead of using CSS style).\n\nThis is how you can install it on your machine:\n\n```\npip install pretty_html_table\n```\n\nThis is for example how you can convert your dataframe:\n\n```\nimport pretty_html_table\nhtml_table_blue_light = build_table(pd.read_excel('df.xlsx'), 'blue_light')\nprint(html_table_blue_light)\n```\n\n## Why choose pretty_html_table?\nIt integrates very well with other python packages used to send emails. Just add the result of this package to the body of the email and voila.\n\n\n## List of colors available\n\n| Name | font style | Header | Rows |\n|---------------|----------------|---------------------------------------------------------------|-------------------------------------------------------------------|\n| 'blue_light' | Century Gothic | Bold: yes / Background color: white / Font color: dark blue | Odd background color: light blue / Even background color: white |\n| blue_dark' | Century Gothic | Bold: yes / Background color: dark blue / Font color: white | Odd background color: light blue / Even background color: white |\n| grey_light' | Century Gothic | Bold: yes / Background color: white / Font color: dark grey | Odd background color: light grey / Even background color: white |\n| grey_dark' | Century Gothic | Bold: yes / Background color: dark grey / Font color: white | Odd background color: light grey / Even background color: white |\n| orange_light' | Century Gothic | Bold: yes / Background color: white / Font color: dark orange | Odd background color: light orange / Even background color: white |\n| orange_dark' | Century Gothic | Bold: yes / Background color: dark orange / Font color: white | Odd background color: light orange / Even background color: white |\n| yellow_light' | Century Gothic | Bold: yes / Background color: white / Font color: dark yellow | Odd background color: light yellow / Even background color: white |\n| yellow_dark' | Century Gothic | Bold: yes / Background color: dark yellow / Font color: white | Odd background color: light yellow / Even background color: white |\n| green_light' | Century Gothic | Bold: yes / Background color: white / Font color: dark green | Odd background color: light green / Even background color: white |\n| green_dark' | Century Gothic | Bold: yes / Background color: dark green / Font color: white | Odd background color: light green / Even background color: white |\n\n\n## Example of an integration with the O365 package\n[O365](https://pypi.org/project/O365/)\n\nFirst, we create a function to send an email:\n\n```\nimport O365\nfrom O365 import Account\n\ncredentials = (o365credid, o365credpwd)\naccount = Account(credentials)\n\ndef send_email(account, to, subject, start, body, end):\n m = account.new_message()\n m.to.add(to)\n m.subject = subject\n m.body = start + body + end\n m.send()\n```\n\nThen we can write the start of an email and the end of the email using the html language:\n\n```\nstart = \"\"\"\n
\n There should be an table here:\"\"\"\n\n\nend = \"\"\"\n \n \"\"\"\n```\n\nFinally we can can pretty_table_html package and send the email:\n\n```\nimport ph_table\n\nhtml_table_blue_light = build_table(pd.read_excel('df.xlsx'), 'blue_light')\n\nsend_email(account\n , 'test@any.com'\n , 'test table'\n , start\n , html_table_blue_light\n , end)\n```\n\nHere are all of the currently available colors: \n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sbi-rviot/ph_table", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pretty-html-table", "package_url": "https://pypi.org/project/pretty-html-table/", "platform": "", "project_url": "https://pypi.org/project/pretty-html-table/", "project_urls": { "Homepage": "https://github.com/sbi-rviot/ph_table" }, "release_url": "https://pypi.org/project/pretty-html-table/0.6.dev0/", "requires_dist": [ "pandas" ], "requires_python": "", "summary": "Make pandas dataframe looking pretty again", "version": "0.6.dev0" }, "last_serial": 5536128, "releases": { "0.2.dev0": [ { "comment_text": "", "digests": { "md5": "02f2e129d997f0d9c227f0c8c3b0eb32", "sha256": "5f5a8e8606c5f107444048be0e327318fa97305002842ac6db161d5b370c483a" }, "downloads": -1, "filename": "pretty_html_table-0.2.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "02f2e129d997f0d9c227f0c8c3b0eb32", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4378, "upload_time": "2019-07-15T16:27:08", "url": "https://files.pythonhosted.org/packages/29/7a/25a5232eabeffd3cd447acb7687f5febe2375666d8bec137c52ed4cc2a05/pretty_html_table-0.2.dev0-py3-none-any.whl" } ], "0.3.dev0": [ { "comment_text": "", "digests": { "md5": "07f42a2e0a85e16a19ff5b642d237b8c", "sha256": "f2cb892d299799cf266d99259452256c56b1f30d35fddc50f3695379f54a9122" }, "downloads": -1, "filename": "pretty_html_table-0.3.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "07f42a2e0a85e16a19ff5b642d237b8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4524, "upload_time": "2019-07-15T17:19:48", "url": "https://files.pythonhosted.org/packages/6b/2c/94e2378df3e1f5efcf6f8aa45869458b3cc1a26d8fe5517b7ba47f515f43/pretty_html_table-0.3.dev0-py3-none-any.whl" } ], "0.4.dev0": [ { "comment_text": "", "digests": { "md5": "152d58824aa58faab01a85541c861b22", "sha256": "e823fcb7cf71e8629c86369bebe6d407249d0bc1d2d58d0ab7ea8d1e684b3dbb" }, "downloads": -1, "filename": "pretty_html_table-0.4.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "152d58824aa58faab01a85541c861b22", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4559, "upload_time": "2019-07-15T17:28:40", "url": "https://files.pythonhosted.org/packages/5e/43/48b81af94a9c8165cece65ec1139cae1940e037f559005bafcefc258a454/pretty_html_table-0.4.dev0-py3-none-any.whl" } ], "0.5.dev0": [ { "comment_text": "", "digests": { "md5": "df64e88f4dcb30c608e47ee422655888", "sha256": "532d3607ccca9a73015350d1ee781640a1ebbbdadeef29c4dbeb74f0d91762d4" }, "downloads": -1, "filename": "pretty_html_table-0.5.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "df64e88f4dcb30c608e47ee422655888", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4575, "upload_time": "2019-07-15T17:31:11", "url": "https://files.pythonhosted.org/packages/5f/22/5771f74f3f532569047a2f6a172709bc583f25dd081d826be99f279d1010/pretty_html_table-0.5.dev0-py3-none-any.whl" } ], "0.6.dev0": [ { "comment_text": "", "digests": { "md5": "9d795ce819510475956eef4bd6d7489a", "sha256": "1806068af7c7557914fd441df6782b3771b29f30c09c7c55fa10fb282eca8ffd" }, "downloads": -1, "filename": "pretty_html_table-0.6.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "9d795ce819510475956eef4bd6d7489a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4573, "upload_time": "2019-07-15T17:32:07", "url": "https://files.pythonhosted.org/packages/ee/98/4946af73c2f7a37bae1036114f891cad9ff6a48e8b1efba51fcb22674062/pretty_html_table-0.6.dev0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d795ce819510475956eef4bd6d7489a", "sha256": "1806068af7c7557914fd441df6782b3771b29f30c09c7c55fa10fb282eca8ffd" }, "downloads": -1, "filename": "pretty_html_table-0.6.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "9d795ce819510475956eef4bd6d7489a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4573, "upload_time": "2019-07-15T17:32:07", "url": "https://files.pythonhosted.org/packages/ee/98/4946af73c2f7a37bae1036114f891cad9ff6a48e8b1efba51fcb22674062/pretty_html_table-0.6.dev0-py3-none-any.whl" } ] }