Skip to main content

A CLI tool to interact with MediaWiki via its API

Project description

PyWikiCLI

A command-line interface tool for interacting with MediaWiki-powered wikis.

Features

  • get: Retrieve and display wiki page content
  • put: Edit or create wiki pages
  • crawl: Crawl wiki pages starting from a specific page
  • config: Configure API settings and credentials

Installation

# Install from PyPI
pip install pywikicli

# Or install with Poetry
poetry install

# Activate the Poetry environment (if using Poetry)
poetry shell

Usage

# Configure your wiki connection
wikicli config

# Get a page
wikicli get "Main Page"

# Get a page and save as Markdown
wikicli get "Main Page" -o md

# Put content to a page
wikicli put "My Page" --content "This is my wiki page content"

# Edit a page from a Markdown file
wikicli put my_page.md

# Crawl pages starting from a specific page
wikicli crawl "Starting Page" --depth 2

Development

This project follows SOLID principles and uses a modular architecture for maintainability and extensibility.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywikicli-0.1.11.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywikicli-0.1.11-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file pywikicli-0.1.11.tar.gz.

File metadata

  • Download URL: pywikicli-0.1.11.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywikicli-0.1.11.tar.gz
Algorithm Hash digest
SHA256 84f44fd346455bb8bff3e17277ef00ef4eddab9db2acb7cd11dc69ec353d4143
MD5 7adf4f4339ed8d5787d08e0d2a0d04aa
BLAKE2b-256 6c5f1c5f3a57b07fd99f171b0dd95639d28479fba97ce9f27e87988a356d62aa

See more details on using hashes here.

File details

Details for the file pywikicli-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: pywikicli-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywikicli-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5d993863387eae00239a99133d9950a1d6b8f7dda52aeab414bcf354e1b71ce5
MD5 6a419844b6afe4af6f40ade6a16d242f
BLAKE2b-256 61fd7176882347721d2c6b87ca1269d047f342c0148f73b8e759223e0376a4ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page