{ "info": { "author": "Tony Vashevko", "author_email": "avashevko@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pano.py\n=======\n\nA workflow automation wrapper for\n`Pandoc `__.\n\nYou\u2019ve got ``exciting.md`` and want a pdf with LuaLaTeX, bibliography\nsupport?\n\n.. code:: sh\n\n panopy pdf exciting.md\n\nWant a self-contained html with Bootstrap too?\n\n.. code:: sh\n\n panopy html exciting.md\n\nInstallation\n------------\n\n.. code:: sh\n\n pip install panopy\n\nPurpose\n-------\n\nPandoc requires a large number of command-line arguments to generate any\noutput format. Typical solutions have been to use makefiles or YAML\nconfigurations to specify what pandoc should do, along with\npre/post-processors to clean up pandoc\u2019s shortcomings. This can get\nmessy.\n\n``panopy``\\ \u2019s philosophy is to separate contents from workflow. Content\nshould try as hard as it can to be agnostic to its output format.\nLikewise, the file system should segregate content from the tools needed\nto process it. Instead of makefile and document-embedded output\nspecifications, ``panopy`` uses global YAML templates to specify\nworkflows around any given input file, combined with a global script to\nprocess it all. So you can write a single markdown file and push it to\nwhatever formats you need.\n\nAt the present moment, panopy is a barebones wrapper allowing for a\nseries of preprocessing commands, a pandoc command and a series of\npostprocessing commands. I can\u2019t vouch for its ability to process\nmultiple input files into a single output. I also doubt that pandoc is\nfast enough to be an online processor for multiple files.\n\nUsage\n-----\n\nPanopy looks for a default YAML template file in\n~/.pandoc/panopy.templates. Currently there is no way to change this\nlocation. A sample file might looks something like:\n\n.. code:: yaml\n\n __default__:\n s:\n S:\n r: markdown+yaml_metadata_block\n\n latex:\n o: %.tex\n bibliography: ~/Documents/library.bib\n filter:\n - pandoc-citeproc\n\n pdf:\n __inherits__: latex\n o: %.pdf\n latex-engine: pdflatex\n\n fancypdf:\n __inherits__: pdf\n __pre__:\n - gpp -o %.gpp.md %.md\n __in__: %.gpp.md\n\nThe ``__default__`` template sets options ``-s`` (standalone), ``-S``\n(smart), and ``-r markdown+yaml_metadata_block`` for all files. The\n``latex`` template changes the default output format to tex and adds\npandoc\u2019s bibliography processing filter. The ``pdf`` template inherits\nall settings from ``latex`` but changes the output to pdf and sets the\nlatex engine. The ``fancypdf`` template updates ``pdf`` to preprocess\nthe input file with\n`gpp `__ and\nchanges the input file to pass to pandoc.\n\nNow just find your input file in the terminal and type:\n\n.. code:: sh\n\n panopy fancypdf input.md\n\nAnd if you use vim:\n\n.. code:: vim\n\n :!panopy fancypdf %\n\n\\`\\`\\`\n\nPanopy Keywords\n~~~~~~~~~~~~~~~\n\nSpecial templates:\n\n- ``__default__``: provides the default template that all others\n inherit from\n\nKeywords in template:\n\n- ``%``: auto-replaced by base file name: ``panopy pdf infile.md`` with\n template option ``-o: %.pdf`` becomes ``-o infile.pdf``. Escape with\n ``\\%``\n- ``__inherits__``: inherit from named template(s)\n- ``__in__``: specifies input file format\n- ``__pre__``: specifies commands to run before pandoc\n- ``__post__``: specifies commands to run after pandoc\n- ``__clear__``: specifies which inherited options to clear\n\nSimilar\n-------\n\n- `panzer `__ allows you to specify\n styles at the file level (YAML metadata), while ``panopy`` specifies\n a workflow at the command line. I made ``panopy`` because I wanted to\n keep my YAML clean and sort of tool agnostic.\n\n- Makefiles: see e.g. `Kieran Healy\u2019s\n solution `__", "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/balachia/panopy", "keywords": "pandoc", "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "panopy", "package_url": "https://pypi.org/project/panopy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/panopy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/balachia/panopy" }, "release_url": "https://pypi.org/project/panopy/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "Pandoc wrapper with templates", "version": "0.2.4" }, "last_serial": 1478190, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9b039b1242913ed041d08102075f82a3", "sha256": "029c1885499e8f96f1669e0688b739e339a699d03b8e4c7f92c8e0a3573974a0" }, "downloads": -1, "filename": "panopy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9b039b1242913ed041d08102075f82a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1898, "upload_time": "2014-09-13T23:19:15", "url": "https://files.pythonhosted.org/packages/29/54/6e030acc0f9ac88d78eb2f19765b3e70c532bcac544bd1696fa01b410468/panopy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3eb2c971a35e945f9d0aed43e518701d", "sha256": "d88a14c35614e85bb25c3e44f37b4b33d1fc8af4bc650d2b9b6e665189c14ed2" }, "downloads": -1, "filename": "panopy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3eb2c971a35e945f9d0aed43e518701d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1895, "upload_time": "2014-09-13T23:21:03", "url": "https://files.pythonhosted.org/packages/dc/03/a3b06bf85b284dc55a32d195f2144aebc62c0712dcef56a7fb385c72d900/panopy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a36faf5fc8e21f8320c85a9d9b313b1b", "sha256": "952618efd94c07cc9e9419f68b4381b8a26791b9d48334b0ef6b3465e2fb18a4" }, "downloads": -1, "filename": "panopy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a36faf5fc8e21f8320c85a9d9b313b1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1918, "upload_time": "2014-09-13T23:29:41", "url": "https://files.pythonhosted.org/packages/52/95/907a3fee2c49fd80c7aeda9d15d42343a50c91e76dde79a2be3ae7669164/panopy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "88b3f55c55fe14aac22c75eeb22c9cfa", "sha256": "cdd8c2fbde2503a6b3cd554a220d0837f94b7b9c040a0eeda7aa56adbb3d36cc" }, "downloads": -1, "filename": "panopy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "88b3f55c55fe14aac22c75eeb22c9cfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2379, "upload_time": "2014-09-15T03:30:55", "url": "https://files.pythonhosted.org/packages/4b/f5/b85f4490e2bede791c2b57adf032ced6caa9ceb6152a8850f22f4e8e4780/panopy-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "2d91431d5eb12ca6da23403d2073c32e", "sha256": "97fd8f2f6d4c83d7ac78c9deab3a97c29504a10a7056c17cd55c1d96c8dce038" }, "downloads": -1, "filename": "panopy-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2d91431d5eb12ca6da23403d2073c32e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3911, "upload_time": "2014-09-17T18:50:41", "url": "https://files.pythonhosted.org/packages/74/35/e36785bf8eaff5d9dcf35fea2e4a1af190064c86b6cf3ea9ece57f28761a/panopy-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "47fc081c84ed4d7dd9ab17eab9e67cf7", "sha256": "5bd1c10a302ecf0fca5d5139d2871f47961213daf0d8e9fd2131b03830659ca4" }, "downloads": -1, "filename": "panopy-0.2.1.tar.gz", "has_sig": false, "md5_digest": "47fc081c84ed4d7dd9ab17eab9e67cf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3922, "upload_time": "2014-09-17T19:57:24", "url": "https://files.pythonhosted.org/packages/4c/b2/8523d3bf4723016260733bd228f58107202eb2838ec43e85b8942f82a016/panopy-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "12bdb75de2f3646edaae12fe952033b5", "sha256": "50088d3f1df9dffdeb0d8ab91379da355677979ce60ccba0c0bd5644cab65d90" }, "downloads": -1, "filename": "panopy-0.2.2.tar.gz", "has_sig": false, "md5_digest": "12bdb75de2f3646edaae12fe952033b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4833, "upload_time": "2014-09-17T20:44:05", "url": "https://files.pythonhosted.org/packages/1c/eb/68958e7c7145d66efe7cbab2be29ced53bb257ebfb1f444259867ad317e5/panopy-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "541bb7e4100565888b9205a735ffa836", "sha256": "7b1f0bd3d6364a1ac3b3e0653b998e5b38e058ec97c45cc9c8561f577f480092" }, "downloads": -1, "filename": "panopy-0.2.3.tar.gz", "has_sig": false, "md5_digest": "541bb7e4100565888b9205a735ffa836", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5036, "upload_time": "2015-03-26T04:50:04", "url": "https://files.pythonhosted.org/packages/dd/62/98b6bf4509e6977487ea998c25c2b43caff76f27d47e12c15680e7b2eea6/panopy-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "01ea0663a03f916a668df5baa6eba458", "sha256": "5be2e9014ffd067ad2b24054c17e901453b82f60bdbafe76ac6a0baff166a837" }, "downloads": -1, "filename": "panopy-0.2.4.tar.gz", "has_sig": false, "md5_digest": "01ea0663a03f916a668df5baa6eba458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5032, "upload_time": "2015-03-26T04:58:22", "url": "https://files.pythonhosted.org/packages/57/da/5a6819921cb27c6639c0855c051f27636d494233046ae920206fecc5e765/panopy-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01ea0663a03f916a668df5baa6eba458", "sha256": "5be2e9014ffd067ad2b24054c17e901453b82f60bdbafe76ac6a0baff166a837" }, "downloads": -1, "filename": "panopy-0.2.4.tar.gz", "has_sig": false, "md5_digest": "01ea0663a03f916a668df5baa6eba458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5032, "upload_time": "2015-03-26T04:58:22", "url": "https://files.pythonhosted.org/packages/57/da/5a6819921cb27c6639c0855c051f27636d494233046ae920206fecc5e765/panopy-0.2.4.tar.gz" } ] }