{ "info": { "author": "Patryk Galczynski", "author_email": "galczynski.patryk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Operating System :: POSIX", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Syntax highlighting package example\n===================================\n\n\nIntroduction\n============\n\nThis package provides nothing but readme that contains code samples that should be rendered nicely by PyPI warehouse.\n\nExamples\n========\n\n- `Python example`_\n- `Javascript example`_\n- `Bash example`_\n\n==============\nPython example\n==============\n\n.. code-block:: python\n\n import some_lib\n from mock_package import PointlessInheritance\n\n CONST = [n**2 for n in range(5)]\n\n # spam with eggs\n @requires_authorization\n def somefunc(param1='', param2=0):\n r'''A docstring'''\n if param1 >= param2: # interesting\n breakpoint()\n print('Gre\\'ater')\n print(f\"Even more awesome greater: {param}\")\n return (param2 - param1 + 1 + 0b10) or None\n\n class SomeClass(PointlessInheritance):\n \"\"\"This is a dummy class \"\"\"\n def __init__(self, some_param=[]):\n pass\n\n message = '''interpreter\n ... prompt'''\n\n\n================== \nJavascript example\n==================\n.. code-block:: javascript\n\n import { Application } from \"stimulus\";\n \n //comment on some arrow function \n docReady((block, cls) => {\n if (navigator.appVersion.includes(\"MSIE 10\")) {\n if (document.getElementById(\"unsupported-browser\") !== null) return;\n let warning_div = document.createElement(\"div\");\n if (cls.search(/\\bno\\-highlight\\b/) != -1)\n return process(block, true, 0x0F) + ` class=\"${cls}\"`;\n }\n\n for (var i = 0 / 2; i < classes.length; i++) {\n if (checkCondition(classes[i]) === undefined)\n var img1 = document.querySelector('.img-1');\n img1.addEventListener('load', function() {\n console.log('undefined');\n });\n }\n\n });\n\n export $docReady;\n\n============\nBash example\n============\n.. code-block:: bash\n\n #!/bin/bash\n\n ###### CONFIG\n SOME_CONSTANT=\"/path/string/example\"\n BE_VERBOSE=false\n\n if [ \"$UID\" -ne 0 ]\n then\n echo \"Superuser rights required\"\n exit 2\n fi\n\n someRandomFunc(){\n for i in $(ls -la ~/); do cat $i; done;\n echo -e \"# I'm in ${HOME_DIR}$1/$2 :\"\n }\n\n\nChangelog\n=========\n\n==================\n0.1.0 (2018-08-29)\n==================\n\n* First version of syntax highlighting example package", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evemorgen/pypi-code-highlighting-demo", "keywords": "syntax,highlighting,example,rst,render", "license": "", "maintainer": "", "maintainer_email": "", "name": "pypi-code-highlighting-demo", "package_url": "https://pypi.org/project/pypi-code-highlighting-demo/", "platform": "", "project_url": "https://pypi.org/project/pypi-code-highlighting-demo/", "project_urls": { "Homepage": "https://github.com/evemorgen/pypi-code-highlighting-demo" }, "release_url": "https://pypi.org/project/pypi-code-highlighting-demo/0.1.13/", "requires_dist": null, "requires_python": "", "summary": "This is a example package that will show how syntax highlighting on PyPI project page works", "version": "0.1.13" }, "last_serial": 4115414, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "64101eb23643435b2eabe9ad49556be4", "sha256": "6de44667c61fa003937c821ad65b291077529bbf833ef0f391f17527e19eb1bd" }, "downloads": -1, "filename": "pypi-code-highlighting-demo-0.1.10.tar.gz", "has_sig": false, "md5_digest": "64101eb23643435b2eabe9ad49556be4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2453, "upload_time": "2018-07-29T13:39:47", "url": "https://files.pythonhosted.org/packages/41/cc/f4973b367a4baca3e36b0fd7c7754d68d03d1fa9f7f614cb911eb8e860be/pypi-code-highlighting-demo-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "6a0c137427535f5cd8ee82aec799d38b", "sha256": "c43754e66204c2cffcca8db28eebd5dad81bd502fd6c5a9a89a09c5b15735eeb" }, "downloads": -1, "filename": "pypi-code-highlighting-demo-0.1.11.tar.gz", "has_sig": false, "md5_digest": "6a0c137427535f5cd8ee82aec799d38b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2458, "upload_time": "2018-07-29T13:48:02", "url": "https://files.pythonhosted.org/packages/3f/08/f54accbc1b7d39a0b55ce0cda39ee62a55a1b607bd4250fcad4534401f7f/pypi-code-highlighting-demo-0.1.11.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "63889cfbcedd59b4859942e215d3738f", "sha256": "b2baaeb0791e5704fcfe0d928c943de2bfca4cd2ea69ca2ce559d5d26f4625a2" }, "downloads": -1, "filename": "pypi-code-highlighting-demo-0.1.12.tar.gz", "has_sig": false, "md5_digest": "63889cfbcedd59b4859942e215d3738f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2493, "upload_time": "2018-07-29T13:49:28", "url": "https://files.pythonhosted.org/packages/7e/1d/29ceb9a9ae18f88430ba21a73b9706ee1604ad652a53f0018f1307ad2742/pypi-code-highlighting-demo-0.1.12.tar.gz" } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "4443903691e7a68250704df7986502a7", "sha256": "66a3be9d36e745fb4d9b67ae399fc2c16a9732a85a59dfebacc23da12f6d62f6" }, "downloads": -1, "filename": "pypi-code-highlighting-demo-0.1.13.tar.gz", "has_sig": false, "md5_digest": "4443903691e7a68250704df7986502a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2554, "upload_time": "2018-07-29T13:55:53", "url": "https://files.pythonhosted.org/packages/6d/28/33eeafd8941f435fcbd239ebc6465f848287981ce61310a5171c27df3682/pypi-code-highlighting-demo-0.1.13.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4443903691e7a68250704df7986502a7", "sha256": "66a3be9d36e745fb4d9b67ae399fc2c16a9732a85a59dfebacc23da12f6d62f6" }, "downloads": -1, "filename": "pypi-code-highlighting-demo-0.1.13.tar.gz", "has_sig": false, "md5_digest": "4443903691e7a68250704df7986502a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2554, "upload_time": "2018-07-29T13:55:53", "url": "https://files.pythonhosted.org/packages/6d/28/33eeafd8941f435fcbd239ebc6465f848287981ce61310a5171c27df3682/pypi-code-highlighting-demo-0.1.13.tar.gz" } ] }