Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Simple Commons Uploader

Python 3.9+ MediaWiki 1.35+ License: GPL v3

The Simple Commons Uploader makes it easy to batch upload your self-made photos and videos to the Wikimedia Commons.

⚠️ You must have an account on Wikimedia Commons to use this program. Create an account by going here.

Download

pip install simple-commons-uploader

Usage

usage: __main__.py [-h] [-u username] [folders ...]

Simple Commons Uploader

positional arguments:
  folders      folders with files to upload

options:
  -h, --help   show this help message and exit
  -u username  username to use

Authentication/Login

The Simple Commons Uploader works with your normal password and BotPasswords.

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

Behavior Details

The Simple Commons Uploader only uploads files in these file formats. Any other file types will be skippied.

Uploaded files will be named based on local folder name. For example, if your folder is called Fancy pigeons, contains jpgs of fancy pigeons, and today's date is 2018-01-01, then the resulting files will be named File:Fancy pigeons 1 2018-01-01.jpg, File:Fancy pigeons 2 2018-01-01.jpg, File:Fancy pigeons 3 2018-01-01.jpg, etc.

Uploaded files will be categorized using the same name as the containing folder on your computer. To use a different category, add an _ character to the end of the folder name, followed by the category (without the Category prefix) you would like to add. For example, a folder with name Fancy pigeons _ Gray birds will cause scu to upload the files with a base name of Fancy pigeons and categorize them in Category:Gray birds.

Release files for simple-commons-uploader 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-commons-uploader 0.4.0
File Size Uploaded
simple-commons-uploader-0.4.0.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-commons-uploader 0.4.0
File Interpreter ABI Platform
simple_commons_uploader-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size:32.8 kB

Release files / simple-commons-uploader-0.4.0.tar.gz

Download URL simple-commons-uploader-0.4.0.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4998d2045260d7f7f4258c2b7138e8e5964b0cbaac2b61abbe667a6812337b06
BLAKE2b-256 checksum
How to use checksums
ba0b359a6dd87c94293e538c54bb9f789d02beff2e19b4112c7d9dbd8945ca3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / simple_commons_uploader-0.4.0-py3-none-any.whl

Download URL simple_commons_uploader-0.4.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abf00cceab0d64206d62d5fe3bf05619cbbdb77e885b083e0a1fdd41e9816523
BLAKE2b-256 checksum
How to use checksums
fad6ab85d0254a4f2d301f89b7fb131a365161deb255edafc85c94da51854e48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page