bye_wiki (bw)
Say goodbye to your wikis! Python command-line tool to convert MediaWiki pages to Markdown with pandoc
About
bye_wiki (bw) is a Python command-line script to convert MediaWiki pages into Markdown.
This makes migrating documentation and pages from a MediaWiki server to somewhere else.
Regardless of whatever "somewhere else" means for you, this tool provides a basic Markdown conversion for you to work with in a new platform.
bye_wiki is more or less a fancy wrapper for requests and pandoc.
How to use
NOTE: You must already have pandoc installed on your system for this script to work!
Once you have pandoc, the easiest way to get started with bye_wiki is to install from PyPI:
pip3 install --user bye-wiki
The CLI --help menu provides more detailed information about how to use bye_wiki.
Some examples are below:
Example 1
Convert El Ten Eleven Wikipedia page to a Markdown document.
bw --title "El Ten Eleven" --out ~/ete.md
Example 2
Convert Licensing:Main from the Fedora Project MediaWiki to a Markdown document.
bw --url fedoraproject.org/w --title "Licensing:Main" --out licensing.md
Example 3
Convert MusicBrainz Principles from the MusicBrainz MediaWiki to a Markdown document, with the --atx flag removed from pandoc:
bw --url wiki.musicbrainz.org --title MusicBrainz_Principles --out mb-principles.md --atx-off
Hint:
If you aren't sure if you want --atx-off or not, you do not.
It is an opinionated format for converting documents but some writers may prefer to not have ATX-style headers.
How to contribute
See CONTRIBUTING.md.
Legal
Licensed under BSD 3-Clause License.
Metadata
Release files for bye-wiki 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bye_wiki-0.0.3.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bye_wiki-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / bye_wiki-0.0.3.tar.gz
| Download URL | bye_wiki-0.0.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e2f422fae6e5f0f6241ab98c2fe2d9cceb9d371c65d420002492f24c43c6922
|
|
BLAKE2b-256 checksum How to use checksums |
f5a2c68894d2f8d19c553828c5ffa56bdffa6486e4a30ac57229c67e4f49c226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / bye_wiki-0.0.3-py3-none-any.whl
| Download URL | bye_wiki-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3fc76f215231848c6a4394e6e5256cc22110590feeceed7037fefdc209ef4c5
|
|
BLAKE2b-256 checksum How to use checksums |
0e540d796a4556f24e96d09d7439902e49027fa0e19fc9d65a2adf425c3493da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for bye-wiki 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.