Skip to main content

A simple CLI tool for moving enwp files to Commons

Project description

mtc-cli

Python 3.9+ 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] [-t] [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)
  -t           Add a Now Commons tag to the enwp file

👉 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.1.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

mtc_cli-0.1.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file mtc-cli-0.1.0.tar.gz.

File metadata

  • Download URL: mtc-cli-0.1.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for mtc-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5fa88da251b03695e1a097f6245719e96711850555d93bedad9d9c09efe83661
MD5 ef7b07c56652114bc168c0403733e73e
BLAKE2b-256 8fb035e6241aaf73b1171da885c35e33a21b0c790f8b19504a5dd1be9d095190

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mtc_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for mtc_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16a4b40212e6bdd59adf56a966a6e85a7d3aa0aab730be4e5d378fe99c83d32c
MD5 cf3f6834f59f44d5b90e3bd6411d824d
BLAKE2b-256 2245d2b318cd60e985c9c899b8181b8a49fa72ea9ce0c71e265dd362e107a6a8

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