From 43afccf223af5e6fb3c1d597bce7fa0dbd6c80fc Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 31 Jan 2011 19:44:58 +0000 Subject: [PATCH] Added the skeleton of a python library to make the interaction with "winterrodeln" easier. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/wrpylib@752 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- setup.py | 0 src/__init__.py | 0 src/mwapi.py | 12 ++++++++++++ src/mwmarkup.py | 13 +++++++++++++ src/wrmwmarkup.py | 7 +++++++ src/wrvalidators.py | 13 +++++++++++++ 6 files changed, 45 insertions(+) create mode 100644 setup.py create mode 100644 src/__init__.py create mode 100644 src/mwapi.py create mode 100644 src/mwmarkup.py create mode 100644 src/wrmwmarkup.py create mode 100644 src/wrvalidators.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e69de29 diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/mwapi.py b/src/mwapi.py new file mode 100644 index 0000000..5e23fec --- /dev/null +++ b/src/mwapi.py @@ -0,0 +1,12 @@ +#!/usr/bin/python2.6 +# -*- coding: iso-8859-15 -*- +# $Id$ +# $HeadURL$ +"""This module contains general functions for using the MediaWiki API. There is one very +good Python wrapper implementation of the MediaWiki API: +* wikitools http://code.google.com/p/python-wikitools/ + +Therefore this module doesn't need to have much content. +""" + + diff --git a/src/mwmarkup.py b/src/mwmarkup.py new file mode 100644 index 0000000..11d1596 --- /dev/null +++ b/src/mwmarkup.py @@ -0,0 +1,13 @@ +#!/usr/bin/python2.6 +# -*- coding: iso-8859-15 -*- +# $Id$ +# $HeadURL$ +"""This module contains general functions that help parsing the mediawiki markup. +I looked for an already existing MediaWiki parser in Python but I didn't find anything +that convinced me. However, here are the links: + +* py-wikimarkup https://github.com/dcramer/py-wikimarkup +* mwlib http://code.pediapress.com/wiki/wiki +""" + + diff --git a/src/wrmwmarkup.py b/src/wrmwmarkup.py new file mode 100644 index 0000000..26c833b --- /dev/null +++ b/src/wrmwmarkup.py @@ -0,0 +1,7 @@ +#!/usr/bin/python2.6 +# -*- coding: iso-8859-15 -*- +# $Id$ +# $HeadURL$ +"""This module contains winterrodeln specific functions that are prcocessing the MediaWiki markup. +""" + diff --git a/src/wrvalidators.py b/src/wrvalidators.py new file mode 100644 index 0000000..84e9680 --- /dev/null +++ b/src/wrvalidators.py @@ -0,0 +1,13 @@ +#!/usr/bin/python2.6 +# -*- coding: iso-8859-15 -*- +# $Id$ +# $HeadURL$ +"""This module contains general functions for using the MediaWiki API. There is one very +good Python wrapper implementation of the MediaWiki API: +* wikitools http://code.google.com/p/python-wikitools/ + +Therefore this module doesn't need to have much content. +""" + + + -- 2.39.5