Skip to main content

A simple CLI tool for moving enwp files to Commons

Project description

mtc-cli

Python 3.12+ MediaWiki 1.35+ License: GPL v3

mtc-cli is a command line tool that helps simplify and automate file imports from Wikipedia to Commons.

This is the rewritten, spiritual successor to the original MTC! tool.

Install

pip install mtc-cli

Usage

usage: __main__.py [-h] [-u username] [-f] [-d] [-a api_endpoint] [titles ...]

mtc CLI

positional arguments:
  titles           Files, usernames, templates, or categories

options:
  -h, --help       show this help message and exit
  -u username      the username to use
  -f               Force (ignore filter) file transfer(s)
  -d               Activate dry run/debug mode (does not transfer files)
  -a api_endpoint  The default desc generation API endpoint to use. Defaults to public toolforge instance.

👉 Password is set via env variable <USERNAME>_PW, such that <USERNAME> is the username of the bot in all caps.

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

mtc_cli-0.2.0.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

mtc_cli-0.2.0-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

Supported by

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