{ "info": { "author": "Brandon W Maister", "author_email": "quodlibetor@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Text Processing", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Text Processing :: Markup :: XML" ], "description": "========\n WP, MD\n========\n\nDammit, Jim! I'm a hack, not a program!\n=======================================\n\n:author: Brandon W Maister \n:Homepage: http://github.com/quolibetor/wp-md\n:copyright: MIT: take, use, share\n\nWhat it is\n----------\n\nThis script converts blog posts from WordPress's xml formats to one of\nvarious markdown-using static-site generator formats.\n\nWhat that means is that you get a more human-readable version of your WordPress blogs if you run the wordpress export file through wp-md.\n\nWhy?\n~~~~\n\nI want to leave WordPress, primarily because it's friggin' impossible to provide code samples within it.\n\nBut I want syntax-highlighted code, so I need to export all my existing posts to something reasonable and none of the existing HTML->markdown converters seem to do a good job with both WordPress' pseudo-html *and* getting the code blocks to be syntax-aware.\n\nThis does.\n\nIt's also pretty bad at it's job, so it's fairly fast. (Much faster than pandoc, anyway.)\n\nThe main thing that this does *not* do is any conversion of nested elements: ``
    ``, ``
    `` and their ilk are just passed through to the final file. This works fine because HTML is valid Markdown.\n\nwpmd also works with WordPress' eXtended RSS or PHPMyAdmin database xml format, so it doesn't need a database layer, or a database.\n\nInstallation\n------------\n\nTo put the script on your path do::\n\n python setup.py install\n\nor::\n\n pip install wp-md\n\nOtherwise, just substitue ``wpmd.py`` for ``wp-md`` as the name of the program in this document, it'll work.\n\nUsage\n-----\n\nGo to WordPress' export page in the admin and download ``your-blog.xml``, then::\n\n wp-md your-blog.xml blog-files\n\nwill put a whole bunch of files in the directory ``blog-files``, creating it if it doesn't exist.\n\nYou can run wp-md with the ``--output-format`` flag to choose which static-site generator format you want your posts to be exported as:\n\n - Nikola_\n - Mynt_\n - Pelican_\n\nThe current default is Pelican_ because it puts the most metadata into the file, and doesn't require the date to be in the filename. If you *want* the date to be part of the filename, use the Mynt_ format.\n\nIf you happen to have a PHPMyAdmin export of your database, you can use the ``--input-format`` flag to choose ``pma_xml``.\n\n.. _Nikola: http://nikola.ralsina.com.ar/\n.. _Mynt: http://mynt.mirroredwhite.com/\n.. _Pelican: http://pelican.notmyidea.org/en/latest/\n\nNotes\n-----\n\nThis is a semi-useful hack that I wrote so that I could play around with static site generators. I don't know that it will work for you, but if it's missing a feature that you want let me know and I might oblige.\n\nDevelopers\n----------\n\nThe code is reasonably well documented and tiny, pull requests welcome.\n\nLicense\n-------\n\nShare and use, and give me credit if you feel like it.\n\nMIT::\n\n The MIT License (MIT)\n\n Copyright (c) 2012 Brandon W Maister \n\n Permission is hereby granted, free of charge, to any person obtaining a\n copy of this software and associated documentation files (the\n \"Software\"), to deal in the Software without restriction, including\n without limitation the rights to use, copy, modify, merge, publish,\n distribute, sublicense, and/or sell copies of the Software, and to permit\n persons to whom the Software is furnished to do so, subject to the\n following conditions:\n\n The above copyright notice and this permission notice shall be included\n in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n USE OR OTHER DEALINGS IN THE SOFTWARE.", "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/quodlibetor/wp-md", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "wp-md", "package_url": "https://pypi.org/project/wp-md/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wp-md/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/quodlibetor/wp-md" }, "release_url": "https://pypi.org/project/wp-md/0.1/", "requires_dist": null, "requires_python": null, "summary": "Move WordPress pseudo-html into a couple markdown formats", "version": "0.1" }, "last_serial": 745191, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3a016d396db29e7ea2181a83d702069a", "sha256": "967fd7d9121c580520a4d78aea45b137f2f7eb0689422e69e9c405b223248a42" }, "downloads": -1, "filename": "wp-md-0.1.tar.gz", "has_sig": false, "md5_digest": "3a016d396db29e7ea2181a83d702069a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13274, "upload_time": "2012-05-18T00:15:16", "url": "https://files.pythonhosted.org/packages/4a/05/8f4f685f615806590d890e058251f59d3100f60516de1a10ff33c61005c0/wp-md-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a016d396db29e7ea2181a83d702069a", "sha256": "967fd7d9121c580520a4d78aea45b137f2f7eb0689422e69e9c405b223248a42" }, "downloads": -1, "filename": "wp-md-0.1.tar.gz", "has_sig": false, "md5_digest": "3a016d396db29e7ea2181a83d702069a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13274, "upload_time": "2012-05-18T00:15:16", "url": "https://files.pythonhosted.org/packages/4a/05/8f4f685f615806590d890e058251f59d3100f60516de1a10ff33c61005c0/wp-md-0.1.tar.gz" } ] }