{ "info": { "author": "Wiky L", "author_email": "wiiiky@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python" ], "description": "pyhilite\r\n=========\r\n\r\n\r\n##Introduce\r\npyhilite is Python3 binding of GNU Source Highlight.\r\n\r\n given a source file, produces a document with syntax highlighting\r\n\r\nFor more details, please refer to [src-highlite](https://www.gnu.org/software/src-highlite/)\r\n\r\n\r\n##Dependency\r\npyhilite depends on the GNU Source Highlight C++ highlight library.\r\n\r\nfor Fedora22\r\n\r\n # dnf install source-highlight-devel\r\n\r\nfor Ubuntu15.04\r\n\r\n # apt-get install libsource-highlight-dev\r\n\r\nthe package name for other linux distributions should be similar.\r\n\r\n\r\n##Installation\r\n\r\n pip3 install pyhilite\r\n\r\n##Sample\r\n\r\n >>> import pyhilite\r\n >>> h = pyhilite.SourceHighlight(outlang=\"html\")\r\n >>> h.highlight(input='hello.c')\r\n '\\n
#include <stdio.h>\\n\\n\\nint main(int argc, const char *argv[])\\n{\\n    printf(\"hello world!\\\\n\");\\n    return 0;\\n}\\n
\\n'\r\n >>> h.highlight(input='hello.c', output='output.html')\r\n\r\n##Screenshot\r\n![hicat.py](https://github.com/wiiiky/pyhilite/blob/master/screenshot.png)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wiiiky/pyhilite", "keywords": "Source Code,Highlight,HTML", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "pyhilite", "package_url": "https://pypi.org/project/pyhilite/", "platform": "GNU/Linux", "project_url": "https://pypi.org/project/pyhilite/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wiiiky/pyhilite" }, "release_url": "https://pypi.org/project/pyhilite/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Python3 binding of GNU source-highlight C++ library", "version": "0.2.0" }, "last_serial": 1657937, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4e0fdcad71d2e0fea4766a20a940fc89", "sha256": "a514327bbf94139c700d403bbf172f5622eb0672dd5b798bf57c4da53d18a63d" }, "downloads": -1, "filename": "pyhilite-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4e0fdcad71d2e0fea4766a20a940fc89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58328, "upload_time": "2015-07-17T01:59:47", "url": "https://files.pythonhosted.org/packages/09/96/74035196f31b2df269a8ea48a6aba110990284bd79480f2d480e912ded9f/pyhilite-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e97d92ba007a576f7743430edd93802b", "sha256": "90206f78407acfb2f7be84114389df2b38ffdd52ec6dcc64f86768937a12efb0" }, "downloads": -1, "filename": "pyhilite-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e97d92ba007a576f7743430edd93802b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58549, "upload_time": "2015-07-31T05:33:03", "url": "https://files.pythonhosted.org/packages/1a/dc/76da79708d2839cdf2bef57c6f95442cc390eaadd28a2bf40a0e514fb5c2/pyhilite-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e97d92ba007a576f7743430edd93802b", "sha256": "90206f78407acfb2f7be84114389df2b38ffdd52ec6dcc64f86768937a12efb0" }, "downloads": -1, "filename": "pyhilite-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e97d92ba007a576f7743430edd93802b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58549, "upload_time": "2015-07-31T05:33:03", "url": "https://files.pythonhosted.org/packages/1a/dc/76da79708d2839cdf2bef57c6f95442cc390eaadd28a2bf40a0e514fb5c2/pyhilite-0.2.0.tar.gz" } ] }