{ "info": { "author": "Nico Schl\u00f6mer", "author_email": "nico.schloemer@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Text Processing" ], "description": "# excode\n\n[![CircleCI](https://img.shields.io/circleci/project/github/nschloe/excode/master.svg)](https://circleci.com/gh/nschloe/excode)\n[![codecov](https://codecov.io/gh/nschloe/excode/branch/master/graph/badge.svg)](https://codecov.io/gh/nschloe/excode)\n[![PyPi Version](https://img.shields.io/pypi/v/excode.svg)](https://pypi.python.org/pypi/excode)\n[![GitHub stars](https://img.shields.io/github/stars/nschloe/excode.svg?logo=github&label=Stars)](https://github.com/nschloe/excode)\n\nThis is excode, a tool for extracting code blocks from markdown files.\n\nFor example, the command\n```\nexcode input.md test.py\n```\ntakes `input.md`,\n````\nLorem ipsum\n```python\nsome_code = 1\n```\ndolor sit amet.\n````\nand creates `test.py`,\n```python\ndef test0():\n some_code = 1\n return\n```\nThis can be used for automatically turning snippets from\na `README.md` into unit tests.\n\n#### Filter code blocks\n\nThe command\n```\nexcode -f \"python,test\" input.md test.py\n```\nonly extracts code blocks with the header\n````\n```python,test\nsome_code()\n```\n````\n(Appending anything to `` in the markdown header doesn't influence\nthe syntax highlighting.)\n\n### Installation\n\nexcode is [available from the Python Package\nIndex](https://pypi.python.org/pypi/excode/), so simply\n```\npip install -U excode\n```\nto install or upgrade.\n\n### Testing\n\nTo run the unit tests, check out this repository and type\n```\npytest\n```\n\n### Distribution\n\nTo create a new release\n\n1. bump the `__version__` number,\n\n2. publish to PyPi and GitHub:\n ```\n $ make publish\n ```\n\n### License\n\nexcode is published under the [MIT license](https://en.wikipedia.org/wiki/MIT_License).\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/nschloe/excode", "keywords": "", "license": "License :: OSI Approved :: MIT License", "maintainer": "", "maintainer_email": "", "name": "excode", "package_url": "https://pypi.org/project/excode/", "platform": "any", "project_url": "https://pypi.org/project/excode/", "project_urls": { "Homepage": "https://github.com/nschloe/excode" }, "release_url": "https://pypi.org/project/excode/0.4.3/", "requires_dist": null, "requires_python": "", "summary": "Extract code blocks from text files", "version": "0.4.3" }, "last_serial": 3945785, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "b5541c33320e5bcde2cc0a6eddbabb45", "sha256": "60e37157c9554cc6dbb98758feed7a054a4ca1aa3e82a4b39f22a57b13ac1627" }, "downloads": -1, "filename": "excode-0.4.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "b5541c33320e5bcde2cc0a6eddbabb45", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5981, "upload_time": "2017-12-14T10:55:03", "url": "https://files.pythonhosted.org/packages/6e/bf/5975f7d90ba96bda15096192f410d42b485d3f3b32273933f934717ddd48/excode-0.4.0-py2.py3-none-any.whl" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "5bceb68a892ac53d904aa122325fe2df", "sha256": "334795a7b782fc79a8bc2258b2081590d7f3bd1f03455e4ef692b8de0406d9de" }, "downloads": -1, "filename": "excode-0.4.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "5bceb68a892ac53d904aa122325fe2df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5954, "upload_time": "2017-12-14T11:13:18", "url": "https://files.pythonhosted.org/packages/1d/0e/9a6b542a82acfef14b1f9b03b8fa10fdfdc81894a4322d03cf70bcac6637/excode-0.4.1-py2.py3-none-any.whl" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "ddb49ffc495f58f99b2a3cc63ddb8e1f", "sha256": "1dcb52f8e5065da4347454882a1219e8d1aa078b1f345dd3c1cb64abd5f01417" }, "downloads": -1, "filename": "excode-0.4.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "ddb49ffc495f58f99b2a3cc63ddb8e1f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6088, "upload_time": "2017-12-14T11:42:13", "url": "https://files.pythonhosted.org/packages/0b/55/e456ff08776a8376192275ac8d1e9af41c5f24e4a669977b6a0c9347ad29/excode-0.4.2-py2.py3-none-any.whl" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "f1d1ce0908ed532e2cf6e1fb15033f56", "sha256": "1d6202795c5a6134c4f5a4e7b5fd8d9c50f62fd82217558ee074a63a13873ade" }, "downloads": -1, "filename": "excode-0.4.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1d1ce0908ed532e2cf6e1fb15033f56", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4294, "upload_time": "2018-06-09T18:09:10", "url": "https://files.pythonhosted.org/packages/eb/de/2f3da8dab5497362a6d1d4ef61071e6051a315ea16c2c3dd3e462dea896a/excode-0.4.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a6528c293481d9a3d9e1b0fda862b34d", "sha256": "75988779ff9808ac6a0f72c57fc42ca9192d56b74ec6e34173b67697e96e1efc" }, "downloads": -1, "filename": "excode-0.4.3.tar.gz", "has_sig": false, "md5_digest": "a6528c293481d9a3d9e1b0fda862b34d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3916, "upload_time": "2018-06-09T18:09:12", "url": "https://files.pythonhosted.org/packages/6b/e2/d183f5470f59a7952d7e7ff2adc9e077be74f308c892893cca8b52f0a8d2/excode-0.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1d1ce0908ed532e2cf6e1fb15033f56", "sha256": "1d6202795c5a6134c4f5a4e7b5fd8d9c50f62fd82217558ee074a63a13873ade" }, "downloads": -1, "filename": "excode-0.4.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1d1ce0908ed532e2cf6e1fb15033f56", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4294, "upload_time": "2018-06-09T18:09:10", "url": "https://files.pythonhosted.org/packages/eb/de/2f3da8dab5497362a6d1d4ef61071e6051a315ea16c2c3dd3e462dea896a/excode-0.4.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a6528c293481d9a3d9e1b0fda862b34d", "sha256": "75988779ff9808ac6a0f72c57fc42ca9192d56b74ec6e34173b67697e96e1efc" }, "downloads": -1, "filename": "excode-0.4.3.tar.gz", "has_sig": false, "md5_digest": "a6528c293481d9a3d9e1b0fda862b34d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3916, "upload_time": "2018-06-09T18:09:12", "url": "https://files.pythonhosted.org/packages/6b/e2/d183f5470f59a7952d7e7ff2adc9e077be74f308c892893cca8b52f0a8d2/excode-0.4.3.tar.gz" } ] }