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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mtc_cli-0.2.0.tar.gz.

File metadata

  • Download URL: mtc_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mtc_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c64f5ae509d1173b9fd633992651a89f5daaf4f1efaf1b569f5737f0aa968680
MD5 cf0384692dcc7d4a7febb0417d1682f8
BLAKE2b-256 cf1b1de19c37cd4d029b1ba14072640ef6b1bc133c2755dc721641d246030ee9

See more details on using hashes here.

File details

Details for the file mtc_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mtc_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mtc_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afe1a46c87f8b5bfadaab4ccc517b757d6184d06e457e51237cd52dd5d28e99c
MD5 73bec1536a7a8780d0695305cb585976
BLAKE2b-256 bd95a544724d77570c5cbb71c1cb111f42fc7630177f69c09b31d8330c6eab0c

See more details on using hashes here.

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