{ "info": { "author": "thg", "author_email": "isidentical@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# ReportMe\nReport generation with python\n## Example\n```py\nfrom reportme.publisher import ReportBuffer\nfrom reportme.reporter import Report\nfrom reportme.reports import Approach, Reimplement, Style\n\nwith Report(name=\"Demo\", version=\"0.1.0\") as report:\n report.description = (\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\"\n \"Cras quis justo risus. Phasellus velit orci, congue sed.\"\n \"Vivamus sed enim mollis, pulvinar quam quis, blandit ta.\"\n )\n\n with report.add_category(name=\"Pythonicity\") as pythonicity:\n\n with pythonicity.add_node(\"PEP8\") as pep8:\n pep8.add_requirement(\"xxx.py\", 32, Style.E331(\"BLA BLA\"))\n pep8.add_requirement(\"yyy.py\", 321, Style.W551(\"TLA TLA\"))\n pep8.add_requirement(\"zzz.py\", 543, Style.Z771(\"TLA TLA\"))\n\n with pythonicity.add_node(\"Approachs\") as approachs:\n approachs.add_requirement(\"aaa.py\", 432, Approach.WITH_USE(\"TLA TLA\"))\n approachs.add_requirement(\"bbb.py\", 2432, Approach.STLIB_USE(\"ZLA ZLA\"))\n\n\n with report.add_category(name=\"Optimizations\") as optimizations:\n\n with optimizations.add_node(\"Reimplements\") as reimplements:\n reimplements.add_requirement(\"zzz.py\", 322, Reimplement.STDLIB_FUNC(\"ZZZ, TTT\"))\n reimplements.add_requirement(\"aaa.py\", 323, Reimplement.BUILTIN_FUNC(\"TAD ZZZ\"))\n\nbuf = ReportBuffer()\nbuf.render(report)\nbuf.print()\n```\n\n```\n================================================================================================================================================================\n Demo (v0.1.0)\n\nDate: 2019-08-04 16:07:18.946147\nDescription: Lorem ipsum dolor sit amet, consectetur adipiscing elit.Cras quis justo risus. Phasellus velit orci, congue sed.Vivamus sed enim mollis, pulvinar\nquam quis, blandit ta.\n\n Pythonicity\n\nSegment 0: PEP8\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| file | line | report |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| xxx.py | 32 | E331 BLA BLA |\n| yyy.py | 321 | W551 TLA TLA |\n| zzz.py | 543 | Z771 TLA TLA |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\nSegment 1: Approachs\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| file | line | report |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| aaa.py | 432 | WITH_USE TLA TLA |\n| bbb.py | 2432 | STLIB_USE ZLA ZLA |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n\n\n Optimizations\n\nSegment 0: Reimplements\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| file | line | report |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| zzz.py | 322 | STDLIB_FUNC ZZZ, TTT |\n| aaa.py | 323 | BUILTIN_FUNC TAD ZZZ |\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": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "reportme", "package_url": "https://pypi.org/project/reportme/", "platform": "", "project_url": "https://pypi.org/project/reportme/", "project_urls": null, "release_url": "https://pypi.org/project/reportme/0.3.2/", "requires_dist": null, "requires_python": "", "summary": "Report generator for THG", "version": "0.3.2" }, "last_serial": 5874215, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "90c1f88913f2e01f8e56304eb251355e", "sha256": "4fd7fc7a495a9fadba4680ce4d0281ec967830567326942222cb89b57e354f9c" }, "downloads": -1, "filename": "reportme-0.1.0.tar.gz", "has_sig": false, "md5_digest": "90c1f88913f2e01f8e56304eb251355e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3474, "upload_time": "2019-08-02T11:56:00", "url": "https://files.pythonhosted.org/packages/18/8f/55fe144d10b6b3da52b144669d5b534b3cad1f37b69b35d0b1bac7a0256d/reportme-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "af9e4e8ec01a84aa7641617d83887abd", "sha256": "f1471510195cf2a0e0fa09608bf2de3091917014e2dbf63c363dacfa6bfdcc31" }, "downloads": -1, "filename": "reportme-0.2.0.tar.gz", "has_sig": false, "md5_digest": "af9e4e8ec01a84aa7641617d83887abd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3546, "upload_time": "2019-08-02T14:33:03", "url": "https://files.pythonhosted.org/packages/da/38/86797b8b18f0a1e924894f9f11e8d7905c7e6dfbafb4cffd1d8bbfd5815a/reportme-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "aca4f824a474c2c504343e8d13d49f75", "sha256": "35e4a6c3300d08995aa2473e6a00d46bf7adf38037766eda5b9dd601f70e53d6" }, "downloads": -1, "filename": "reportme-0.3.0.tar.gz", "has_sig": false, "md5_digest": "aca4f824a474c2c504343e8d13d49f75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3591, "upload_time": "2019-08-04T12:34:05", "url": "https://files.pythonhosted.org/packages/82/bb/120beda1e7d8b3a109f15cd3b0e1e7fb47007cf75ec5e7fc8e7de1b1f4e2/reportme-0.3.0.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "f5a0494f2fb9a43e7e0a5c1732bef45b", "sha256": "a45db9861c0dc694610f44f87cdc7a433482ab094e1494b89ece5ae201f24a7f" }, "downloads": -1, "filename": "reportme-0.3.2.tar.gz", "has_sig": false, "md5_digest": "f5a0494f2fb9a43e7e0a5c1732bef45b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3599, "upload_time": "2019-09-23T15:07:41", "url": "https://files.pythonhosted.org/packages/52/9c/dcadaff581168acacba00058f50335149a3b12bea123ad232951454c582d/reportme-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f5a0494f2fb9a43e7e0a5c1732bef45b", "sha256": "a45db9861c0dc694610f44f87cdc7a433482ab094e1494b89ece5ae201f24a7f" }, "downloads": -1, "filename": "reportme-0.3.2.tar.gz", "has_sig": false, "md5_digest": "f5a0494f2fb9a43e7e0a5c1732bef45b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3599, "upload_time": "2019-09-23T15:07:41", "url": "https://files.pythonhosted.org/packages/52/9c/dcadaff581168acacba00058f50335149a3b12bea123ad232951454c582d/reportme-0.3.2.tar.gz" } ] }