{ "info": { "author": "Kazeto Fukasawa", "author_email": "fukasawakaze@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Overview\nfig_html generates minimal html files from directories where figures were saved.\n\n# Requirement\n\n```\npython >= 3.6\n```\n\n```\nnumpy\npandas\nmatplotlib\njinja2 >= 2.10\n```\nThe matplotlib is only for making sample figures.\n\n# Usage\n\nSuppose we saved figures in a directory hierarchicaly.\n\n`SampleFiguresMaker` makes sample figures and directory.\n\n```python\nfrom fig_html.utils import SampleFiguresMaker\n\nroot_dir = \"./outputs\"\nSampleFiguresMaker().make(root_dir)\n```\n\n```\n\u2514\u2500\u2500 outputs\n \u00a0\u00a0 \u251c\u2500\u2500 correlation\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 correlation\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig1.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig2.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 fig3.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig1.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig2.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 fig3.png\n \u00a0\u00a0 \u2514\u2500\u2500 histogram\n \u00a0\u00a0 \u00a0\u00a0 \u251c\u2500\u2500 histogram1.png\n \u00a0\u00a0 \u00a0\u00a0 \u251c\u2500\u2500 histogram2.png\n \u00a0\u00a0 \u00a0\u00a0 \u2514\u2500\u2500 histogram3.png\n```\n\n`HTMLMaker` adds html file in each directory like below.\n\n```python\nfrom fig_html import HTMLMaker\n\nroot_dir = \"./outputs\"\nHTMLMaker().make(root_dir)\n```\n\n```\n\u2514\u2500\u2500 outputs\n \u00a0\u00a0 \u251c\u2500\u2500 _static\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 basestyle.css\n \u00a0\u00a0 \u251c\u2500\u2500 correlation\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 correlation\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 correlation.html\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig1.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig2.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 fig3.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 correlation.html\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig1.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 fig2.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 fig3.png\n \u00a0\u00a0 \u251c\u2500\u2500 histogram\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 histogram.html\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 histogram1.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 histogram2.png\n \u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 histogram3.png\n \u00a0\u00a0 \u2514\u2500\u2500 outputs.html\n```\n\nNow we can check figures easily like this.\n\n![htmldemo](https://raw.github.com/wiki/kazetof/fig_html/img/fig_html_sample.gif)\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/kazetof/fig_html", "keywords": "python data-science data-analysis", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fig-html", "package_url": "https://pypi.org/project/fig-html/", "platform": "", "project_url": "https://pypi.org/project/fig-html/", "project_urls": { "Homepage": "https://github.com/kazetof/fig_html" }, "release_url": "https://pypi.org/project/fig-html/0.0.1/", "requires_dist": [ "numpy", "pandas", "jinja2 (>=2.10)", "matplotlib" ], "requires_python": "", "summary": "html generator following directory structure you saved figures", "version": "0.0.1" }, "last_serial": 5406285, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7576858433c68692af072df6f7ff15c1", "sha256": "96441d6279ce0151eda4c8189498b2559c85d35a643bc16a2dc7e7801f307c64" }, "downloads": -1, "filename": "fig_html-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7576858433c68692af072df6f7ff15c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7047, "upload_time": "2019-06-16T12:07:13", "url": "https://files.pythonhosted.org/packages/37/d0/482d35164a249004a3e55d6049ac6d80f3fca3942ddadb63582f7ef877f5/fig_html-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "669b80b28b0d31e3a5d2819287447600", "sha256": "84f2607d17f4cf00ea74e642887d9052775bc0baaf88e8e784b82d13f113b143" }, "downloads": -1, "filename": "fig_html-0.0.1.tar.gz", "has_sig": false, "md5_digest": "669b80b28b0d31e3a5d2819287447600", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5597, "upload_time": "2019-06-16T12:07:15", "url": "https://files.pythonhosted.org/packages/51/3e/a8bcaaa641a88f77d2a04d35dc0489bb6ac8b2e74796b3410f3b6bf4ce44/fig_html-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7576858433c68692af072df6f7ff15c1", "sha256": "96441d6279ce0151eda4c8189498b2559c85d35a643bc16a2dc7e7801f307c64" }, "downloads": -1, "filename": "fig_html-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7576858433c68692af072df6f7ff15c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7047, "upload_time": "2019-06-16T12:07:13", "url": "https://files.pythonhosted.org/packages/37/d0/482d35164a249004a3e55d6049ac6d80f3fca3942ddadb63582f7ef877f5/fig_html-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "669b80b28b0d31e3a5d2819287447600", "sha256": "84f2607d17f4cf00ea74e642887d9052775bc0baaf88e8e784b82d13f113b143" }, "downloads": -1, "filename": "fig_html-0.0.1.tar.gz", "has_sig": false, "md5_digest": "669b80b28b0d31e3a5d2819287447600", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5597, "upload_time": "2019-06-16T12:07:15", "url": "https://files.pythonhosted.org/packages/51/3e/a8bcaaa641a88f77d2a04d35dc0489bb6ac8b2e74796b3410f3b6bf4ce44/fig_html-0.0.1.tar.gz" } ] }