No project description provided
Project description
mwlib - MediaWiki Parser and Utility Library
Overview
mwlib is a versatile library designed for parsing MediaWiki articles and converting them to various output formats. A notable application of mwlib is in Wikipedia's "Print/export" feature, where it is used to create PDF documents from Wikipedia articles.
Getting Started
Prerequisites
To build mwlib, ensure you have the following software installed:
- Python (version 3.8 or later)
- Ploticus
- re2c
- Perl
- Pillow / PyImage
- ImageMagick
Setup a virtual environment for Python 3.8 or later and activate it.
mwlib uses pip-compile-multi <https://pip-compile-multi.readthedocs.io/en/latest/index.html>
_ to
manage dependencies. To install all dependencies, run the following commands:
$ make install
To build mwlib, run the following commands:
$ python setup.py build
$ python setup.py install
Documentation
Please visit http://mwlib.readthedocs.org/en/latest/index.html for detailed documentation.
Docker Compose Setup
For users interested in setting up mwlib using Docker Compose, detailed instructions are available at Docker Compose documentation.
License
Copyright (c) 2007-2012 PediaPress GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of PediaPress GmbH nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.. _SpamBayes: http://spambayes.sourceforge.net/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mwlib-0.17.0.post1.zip
.
File metadata
- Download URL: mwlib-0.17.0.post1.zip
- Upload date:
- Size: 5.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f79e01691e08c54cb4ba635b99d35ad105905b84bc9d858973f1a6343b6a526a |
|
MD5 | 2b5e63b72de06c8d83ddc728efd49804 |
|
BLAKE2b-256 | a66ccb1e50ca5964de3c93da8edf2822c0e32c6924d0e99584fba5f71deba365 |