{ "info": { "author": "Chris L. Barnes", "author_email": "barnesc@janelia.hhmi.org", "bugtrack_url": null, "classifiers": [], "description": "# pipe2codeblock\n\nPipe text into a code block in a markdown file.\n\nOriginally designed for putting a terminal command's `--help` text into a `README.md`.\n\n## Usage\n\nPut a fenced codeblock in your target file with the info string `help`.\n\nThe fenced codeblock is defined as it is by [CommonMark](https://spec.commonmark.org/0.29/#fenced-code-blocks),\nwith the exception that it cannot be indented (to prevent spaces being lstripped inside the block).\n\nThen do \n\n```bash\nyour_awesome_tool --help | p2c README.md\n```\n\nto pipe the text in, or\n\n```bash\np2c README.md input_file.txt\n```\n\nto read from a file.\n\nThe `--tgt` option allows you to choose which info string to target (instead of `\"help\"`).\nOnly the first instance will be used.\n\n\n## Usage\n\n```help\nusage: p2c [-h] [--tgt TGT] outfile [infile]\n\nPipe text into a code block in a markdown file.\n\npositional arguments:\n outfile\n infile\n\noptional arguments:\n -h, --help show this help message and exit\n --tgt TGT Target a code block with a different info string (default\n 'help')\n```\n\nGenerated by dogfooding: `p2c --help | p2c README.md`", "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/clbarnes/pipe2codeblock", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pipe2codeblock", "package_url": "https://pypi.org/project/pipe2codeblock/", "platform": "", "project_url": "https://pypi.org/project/pipe2codeblock/", "project_urls": { "Homepage": "https://github.com/clbarnes/pipe2codeblock" }, "release_url": "https://pypi.org/project/pipe2codeblock/1.0.0/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Pipe text into a code block in a markdown file.", "version": "1.0.0" }, "last_serial": 5185565, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "691b7a74ecc103fbc5e9da77518c03ad", "sha256": "b7795ac21d61b6d2f0520d8699baa9b4d19d84612e0926678cff97af5f9bfbfd" }, "downloads": -1, "filename": "pipe2codeblock-1.0.0.tar.gz", "has_sig": false, "md5_digest": "691b7a74ecc103fbc5e9da77518c03ad", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2610, "upload_time": "2019-04-25T01:44:23", "url": "https://files.pythonhosted.org/packages/4e/69/98f167113bd954f0b99568ddf92a7be927f775ef7883146fde1440430dfd/pipe2codeblock-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "691b7a74ecc103fbc5e9da77518c03ad", "sha256": "b7795ac21d61b6d2f0520d8699baa9b4d19d84612e0926678cff97af5f9bfbfd" }, "downloads": -1, "filename": "pipe2codeblock-1.0.0.tar.gz", "has_sig": false, "md5_digest": "691b7a74ecc103fbc5e9da77518c03ad", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2610, "upload_time": "2019-04-25T01:44:23", "url": "https://files.pythonhosted.org/packages/4e/69/98f167113bd954f0b99568ddf92a7be927f775ef7883146fde1440430dfd/pipe2codeblock-1.0.0.tar.gz" } ] }