Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fastily/mtc-cli
💫² The spiritual successor to the original MTC! tool
https://github.com/fastily/mtc-cli
wikimedia-commons wikimedia-tools wikipedia
Last synced: about 2 months ago
JSON representation
💫² The spiritual successor to the original MTC! tool
- Host: GitHub
- URL: https://github.com/fastily/mtc-cli
- Owner: fastily
- License: gpl-3.0
- Created: 2021-04-27T06:04:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T21:44:23.000Z (4 months ago)
- Last Synced: 2024-11-06T23:42:59.481Z (2 months ago)
- Topics: wikimedia-commons, wikimedia-tools, wikipedia
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mtc-cli
[![Python 3.12+](https://upload.wikimedia.org/wikipedia/commons/5/50/Blue_Python_3.12%2B_Shield_Badge.svg)](https://www.python.org)
[![MediaWiki 1.35+](https://upload.wikimedia.org/wikipedia/commons/b/b3/Blue_MediaWiki_1.35%2B_Shield_Badge.svg)](https://www.mediawiki.org/wiki/MediaWiki)
[![License: GPL v3](https://upload.wikimedia.org/wikipedia/commons/8/86/GPL_v3_Blue_Badge.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)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!](https://github.com/fastily/mtc) tool.
### Install
```bash
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 categoriesoptions:
-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 `_PW`, such that `` is the username of the bot in all caps.