{ "info": { "author": "yobrave", "author_email": "yobrave86550129@yahoo.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\ndoc2md\n======\n\n\u672c\u610f\u662f\u4e3a\u4e86\n\n\u50cf\n\n--------------\n\n.. code:: py\n\n \u5012\u5e8f\n for color in sorted(colors, reverse=True):\n print colors\n\n \u81ea\u5b9a\u4e49\u6392\u5e8f\u987a\u5e8f\n\n colors = ['red', 'green', 'blue', 'yellow']\n\n def compare_length(c1, c2):\n if len(c1) < len(c2): return -1\n if len(c1) > len(c2): return 1\n return 0\n\n print sorted(colors, cmp=compare_length)\n\n \u66f4\u597d\u7684\u65b9\u6cd5\n\n print sorted(colors, key=len)\n\n \u7b2c\u4e00\u79cd\u65b9\u6cd5\u6548\u7387\u4f4e\u800c\u4e14\u5199\u8d77\u6765\u5f88\u4e0d\u723d\u3002\u53e6\u5916\uff0cPython 3\u5df2\u7ecf\u4e0d\u652f\u6301\u6bd4\u8f83\u51fd\u6570\u4e86\u3002\n\n \u8c03\u7528\u4e00\u4e2a\u51fd\u6570\u76f4\u5230\u9047\u5230\u6807\u8bb0\u503c\n\n blocks = []\n while True:\n block = f.read(32)\n if block == '':\n break\n blocks.append(block)\n\n\u53d8\u6210 \u4e0b\u9762 markdown \u683c\u5f0f\n=======================\n\n.. code:: py\n\n # \u5012\u5e8f\n for color in sorted(colors, reverse=True):\n print colors\n\n\u81ea\u5b9a\u4e49\u6392\u5e8f\u987a\u5e8f\n\n.. code:: py\n\n colors = ['red', 'green', 'blue', 'yellow']\n\n def compare_length(c1, c2):\n if len(c1) < len(c2): return -1\n if len(c1) > len(c2): return 1\n return 0\n\n print sorted(colors, cmp=compare_length)\n\n\u66f4\u597d\u7684\u65b9\u6cd5\n\n.. code:: py\n\n print sorted(colors, key=len)\n\n\u7b2c\u4e00\u79cd\u65b9\u6cd5\u6548\u7387\u4f4e\u800c\u4e14\u5199\u8d77\u6765\u5f88\u4e0d\u723d\u3002\u53e6\u5916\uff0cPython 3\u5df2\u7ecf\u4e0d\u652f\u6301\u6bd4\u8f83\u51fd\u6570\u4e86\u3002\n\n\u8c03\u7528\u4e00\u4e2a\u51fd\u6570\u76f4\u5230\u9047\u5230\u6807\u8bb0\u503c\n\n.. code:: py\n\n blocks = []\n while True:\n block = f.read(32)\n if block == '':\n break\n blocks.append(block)\n\n--------------\n\n\u8fd0\u884c\u6587\u4ef6\u662f ``main/doc2md.py``\n-----------------------------\n\n\u4e00\u6b65\u4e00\u6b65\u8fc7\u7a0b \u53ef\u4ee5\u4f7f\u7528\\ ``jupyter notebook`` \u67e5\u770b ``doc2md.ipynb``\n\n\u9996\u5148\u8bf4\u660e\u7f3a\u9677\u5c31\u662f\uff0c\u547d\u4ee4\u884c\u8fd8\u6ca1\u6709\u505a \u8bf7\u81ea\u5df1\u8fdb\u5165\u6587\u4ef6\u4fee\u6539\u5148\u3002\n\n.. code:: py\n\n Path = \"../\u8ba9\u4f60\u7684Python\u4f18\u96c5.md\"\n write_file = '../test_w.md'\n\ndemo \u5c31\u662f\n---------\n\n.. code:: py\n\n useag:\n $ doc2md2 file1 file2\n file2.md is create markdown from file1.md\n\n $ doc2md2 file1\n file1.md is create markdown from file1\n\n\n \u83b7\u53d6 ``\u8ba9\u4f60\u7684Python\u4f18\u96c5.md``\n\n md\u683c\u5f0f\\ ``\u5199``\\ \u5165 ``test_w.md``\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kennethreitz/background", "keywords": "", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "doc2md2", "package_url": "https://pypi.org/project/doc2md2/", "platform": "", "project_url": "https://pypi.org/project/doc2md2/", "project_urls": { "Homepage": "https://github.com/kennethreitz/background" }, "release_url": "https://pypi.org/project/doc2md2/0.1.3/", "requires_dist": [ "termcolor" ], "requires_python": "", "summary": "doc to markdown", "version": "0.1.3" }, "last_serial": 3261492, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "d5401eeead084e9775f7a9e2e64794e1", "sha256": "cf09498d44d12dec84b4e458ccb03bc69fe3d4a44b75217f33f32f0d2f1531f1" }, "downloads": -1, "filename": "doc2md2-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d5401eeead084e9775f7a9e2e64794e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5471, "upload_time": "2017-10-16T09:06:52", "url": "https://files.pythonhosted.org/packages/02/e9/67a3d42f0d2691cadd9914d40f3f941a4e24f111180d6ecfacd953c6adac/doc2md2-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bb09daaa7e32e807add0e87263935dc8", "sha256": "c3d2063ad36132994829a6bd6f0da02cb1012683166095bcbbdb1515391cb066" }, "downloads": -1, "filename": "doc2md2-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bb09daaa7e32e807add0e87263935dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4521, "upload_time": "2017-10-16T09:06:54", "url": "https://files.pythonhosted.org/packages/30/49/d88d328663623b06c9475d4362593dfa4470d97dbcad4556258574969245/doc2md2-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e27de0145f426c4bbfe33ff63d5cbaf5", "sha256": "7e81c7747f16329fb9f1ab522f2ce114083feed673ea702dd11c0a6ba961c34a" }, "downloads": -1, "filename": "doc2md2-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e27de0145f426c4bbfe33ff63d5cbaf5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5575, "upload_time": "2017-10-16T10:05:18", "url": "https://files.pythonhosted.org/packages/ee/86/bfda0e109ef97634578149a82df0cab3a8e5a452dd4418a0c66f91d98f46/doc2md2-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aea4b03157fde303d4f3f2a842fadc05", "sha256": "33c5966bc76333138b2bf7880e82bbb0bf0b4406405c805a99a66be02509f19c" }, "downloads": -1, "filename": "doc2md2-0.1.2.tar.gz", "has_sig": false, "md5_digest": "aea4b03157fde303d4f3f2a842fadc05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4537, "upload_time": "2017-10-16T10:05:19", "url": "https://files.pythonhosted.org/packages/e9/e6/c414dd150c313de9cf28aa6be9899a6e915ff78e0784ede98ae8575a1c75/doc2md2-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "bc4abccbfa6ba033bfcd5cfd1beafaab", "sha256": "ed56360cdfe3cecf5ea599c4cb8c575adf84207212b77c7346537c50f00fe665" }, "downloads": -1, "filename": "doc2md2-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bc4abccbfa6ba033bfcd5cfd1beafaab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5592, "upload_time": "2017-10-19T02:00:42", "url": "https://files.pythonhosted.org/packages/a4/85/3cc57812a6243df7e23705fe6f97576aabff89315d74129b8106fb2df3af/doc2md2-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af8deb9338a8ff7b86a696f10894c931", "sha256": "8f0487a419dce8b80c4d50bffa0e71a39d4856b51b7677eb55f1bacafd75f6b2" }, "downloads": -1, "filename": "doc2md2-0.1.3.tar.gz", "has_sig": false, "md5_digest": "af8deb9338a8ff7b86a696f10894c931", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4549, "upload_time": "2017-10-19T02:00:44", "url": "https://files.pythonhosted.org/packages/2f/2f/31b75675e0386ef1cc38a861e02f73a83488d4abab8e89448c618aff1044/doc2md2-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bc4abccbfa6ba033bfcd5cfd1beafaab", "sha256": "ed56360cdfe3cecf5ea599c4cb8c575adf84207212b77c7346537c50f00fe665" }, "downloads": -1, "filename": "doc2md2-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bc4abccbfa6ba033bfcd5cfd1beafaab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5592, "upload_time": "2017-10-19T02:00:42", "url": "https://files.pythonhosted.org/packages/a4/85/3cc57812a6243df7e23705fe6f97576aabff89315d74129b8106fb2df3af/doc2md2-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af8deb9338a8ff7b86a696f10894c931", "sha256": "8f0487a419dce8b80c4d50bffa0e71a39d4856b51b7677eb55f1bacafd75f6b2" }, "downloads": -1, "filename": "doc2md2-0.1.3.tar.gz", "has_sig": false, "md5_digest": "af8deb9338a8ff7b86a696f10894c931", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4549, "upload_time": "2017-10-19T02:00:44", "url": "https://files.pythonhosted.org/packages/2f/2f/31b75675e0386ef1cc38a861e02f73a83488d4abab8e89448c618aff1044/doc2md2-0.1.3.tar.gz" } ] }