{ "info": { "author": "Marcus Brinkmann", "author_email": "m.brinkmann@semantics.de", "bugtrack_url": null, "classifiers": [], "description": "smc.mw\n======\n\nA mediawiki-compatible parser for Python.\n\nCurrent status:\n\n.. image:: https://travis-ci.org/lambdafu/smc.mw.png\n :target: http://travis-ci.org/lambdafu/smc.mw\n.. image:: https://coveralls.io/repos/lambdafu/smc.mw/badge.png?branch=master\n :target: https://coveralls.io/r/lambdafu/smc.mw?branch=master\n.. image:: https://pypip.in/v/smc.mw/badge.png\n :target: https://crate.io/packages/smc.mw/\n.. image:: https://pypip.in/d/smc.mw/badge.png\n :target: https://crate.io/packages/smc.mw/\n\nUsing\n=====\n\nTo run the tests::\n\n $ make -C tests\n\nThe test result can be found in ``tests/out/report.html``.\n\nA command line tool is available, too (installed as \"mw\")::\n\n $ echo \"''Hello World''\" | python smc/mw/tool.py\n
Hello World\n
\n\nDifferences\n===========\n\nFor specific differences, see the `test results`_.\n\n* __TOC__ and other magic words must appear on a line on their own, while MediaWiki allows them everyhwere with some strange consequences.\n* Not supported right now: __NOEDITSECTION__, __NEWSECTIONLINK, __NONEWSECTIONLINK__.\n\n.. _test results: http://htmlpreview.github.io/?http://github.com/lambdafu/smc.mw/blob/master/tests/out/report-0002.html\n\nToDo\n====\n\n* Test 843: Section extraction, around bogus header (bug 10309)\n This should be fixed, as it affects parser extensions (math element,\n etc), too. For this, the preprocessor grammar needs to include\n specific (but not all) XML elements parsed (counterexample: div\n elements are transparent for headings, pre elements are not).\n\nThanks\n======\n\nThe parser uses the grako_ parser generator for PEG grammars by ResQSoft Inc. and Juancarlo A\u00f1ez.\n\n.. _grako: https://bitbucket.org/apalala/grako\n\n\nAuthors\n=======\n\n* Marcus Brinkmann, m.brinkmann@semantics.de\n\n\nCopyright\n=========\n\nsmc.mw\n------\n\nCopyright (C) 2013 semantics GmbH. All Rights Reserved.\n\nFor licensing, see the file LICENSE.txt.\n\n::\n\n semantics\n Kommunikationsmanagement GmbH\n Viktoriaallee 45\n D-52066 Aachen\n Germany\n\n email: info(at)semantics.de\n url: http://www.semantics.de/\n\njquery\n------\n\nsmc.mw includes jquery in the test suite under ``tests/static/jquery-1.10.1.min.js``::\n\n Copyright 2013 jQuery Foundation and other contributors\n http://jquery.com/\n\n Permission is hereby granted, free of charge, to any person obtaining\n a 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\n permit persons to whom the Software is furnished to do so, subject to\n the following conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nTest Data\n---------\n\nThe test data under ``tests/data/parserTests.txt`` and\n``tests/extra-data/*.txt`` is copied verbatim from the MediaWiki project::\n\n MediaWiki Parser test cases\n Some taken from http://meta.wikimedia.org/wiki/Parser_testing\n All (C) their respective authors and released under the GPL\n\ntidylib\n-------\n\nThe tidylib implementation in ``tests/mytidylib`` is derived from\nPyTidyLib, version 0.2.1::\n\n Copyright 2009 Jason Stitt\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n 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/lambdafu/smc.mw",
"keywords": "wiki mediawiki parser peg",
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "smc.mw",
"package_url": "https://pypi.org/project/smc.mw/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/smc.mw/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/lambdafu/smc.mw"
},
"release_url": "https://pypi.org/project/smc.mw/0.3/",
"requires_dist": null,
"requires_python": null,
"summary": "MediaWiki-compatible parser for Python.",
"version": "0.3"
},
"last_serial": 927014,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "6b6d59151e42b72a6c38c501d80c8d7f",
"sha256": "e0351615891b3c7958fe7c79eb062c142c6f9f66a6c41bc5eb7b86ea458b5734"
},
"downloads": -1,
"filename": "smc.mw-0.1.zip",
"has_sig": false,
"md5_digest": "6b6d59151e42b72a6c38c501d80c8d7f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 357925,
"upload_time": "2013-10-01T01:10:44",
"url": "https://files.pythonhosted.org/packages/1c/d0/1486cbc495bddb5277a478d48f2c7e35fa4b97b348913d8e54ec94e10f14/smc.mw-0.1.zip"
}
],
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "23dbd0d016301c627387b0199cbc85a6",
"sha256": "a1fed840515f803841e71f8f1a92416bc4bf19a69dfba5ff32d437c0da40354d"
},
"downloads": -1,
"filename": "smc.mw-0.2.zip",
"has_sig": false,
"md5_digest": "23dbd0d016301c627387b0199cbc85a6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 561593,
"upload_time": "2013-10-06T03:25:13",
"url": "https://files.pythonhosted.org/packages/59/94/0b1fd8fbb4dea3e304985d0910f6cf81e4527c74379dd4e4b3b3439f9c0e/smc.mw-0.2.zip"
}
],
"0.3": [
{
"comment_text": "",
"digests": {
"md5": "d2c5ec82e8e82352842a5f6e1a236a6d",
"sha256": "a09e1212b0f8c19339cc573d95b7354dbd9450f49e3a891b1c17834ac059ef2e"
},
"downloads": -1,
"filename": "smc.mw-0.3.zip",
"has_sig": false,
"md5_digest": "d2c5ec82e8e82352842a5f6e1a236a6d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 777396,
"upload_time": "2013-11-22T23:59:36",
"url": "https://files.pythonhosted.org/packages/3c/24/bf79e2983466cd642d47316dc193a756cdab20ae9101f66adc2c053fc6f2/smc.mw-0.3.zip"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "d2c5ec82e8e82352842a5f6e1a236a6d",
"sha256": "a09e1212b0f8c19339cc573d95b7354dbd9450f49e3a891b1c17834ac059ef2e"
},
"downloads": -1,
"filename": "smc.mw-0.3.zip",
"has_sig": false,
"md5_digest": "d2c5ec82e8e82352842a5f6e1a236a6d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 777396,
"upload_time": "2013-11-22T23:59:36",
"url": "https://files.pythonhosted.org/packages/3c/24/bf79e2983466cd642d47316dc193a756cdab20ae9101f66adc2c053fc6f2/smc.mw-0.3.zip"
}
]
}