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.

usage: __main__.py [-h] [-u username] [-f] [-d] [-t] [--wgen] [titles ...]

mtc CLI

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

optional arguments:
  -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
  --wgen       run wgen password manager

Note: you must run this program with the --wgen flag to authenticate yourself before you can perform any transfers.

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mtc-cli-0.0.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for mtc-cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fe9e1bd18039fc2fd63fa9ee8c5ff74f54ffdfa89895b9ec984f2941db2785a8
MD5 9341812eaa02d9c5e009f472314271a1
BLAKE2b-256 6d21ebf28c98b2736d9199d85a58fa3dd42d2295ebb6c00febdcb454bf550708

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mtc_cli-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for mtc_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 800036113a3978fc0a25440dd57a7089289f5de56ff65080fb17f98ee8eb4d08
MD5 0e4f059f5d05c6f75b6594cba2acf69f
BLAKE2b-256 c51667dd6db471a2b4ac02674e444a9e2830ebf3a30cfe13f15d1a30690c1b35

See more details on using hashes here.

Provenance

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