diff options
| author | clpo13 <clpo13@gmail.com> | 2023-09-26 13:30:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-26 13:30:26 -0700 |
| commit | e274ccea56219c7d07c0e677d44c8122a699dcaf (patch) | |
| tree | f19915db2eafe895b949ced6dee183b51d3fb975 /src/wikiget/__init__.py | |
| parent | 602bbbb7e387f5c126d5130c6e7193f5ae906d9c (diff) | |
| parent | 3c720f269d69f8bc505efed3f86881e530f55949 (diff) | |
| download | wikiget-e274ccea56219c7d07c0e677d44c8122a699dcaf.tar.gz wikiget-e274ccea56219c7d07c0e677d44c8122a699dcaf.zip | |
Merge pull request #7 from clpo13/dev
Merge dev branch into master
Diffstat (limited to 'src/wikiget/__init__.py')
| -rw-r--r-- | src/wikiget/__init__.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/wikiget/__init__.py b/src/wikiget/__init__.py new file mode 100644 index 0000000..b68b0ec --- /dev/null +++ b/src/wikiget/__init__.py @@ -0,0 +1,31 @@ +# wikiget - CLI tool for downloading files from Wikimedia sites +# Copyright (C) 2018, 2019, 2020 Cody Logan and contributors +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Wikiget is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Wikiget is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Wikiget. If not, see <https://www.gnu.org/licenses/>. + +from mwclient import __version__ as mwclient_version + +from wikiget.version import __version__ as wikiget_version + +# set some global constants +BLOCKSIZE = 65536 +CHUNKSIZE = 1024 +DEFAULT_SITE = "commons.wikimedia.org" +DEFAULT_PATH = "/w/" +USER_AGENT = "wikiget/{} (https://github.com/clpo13/wikiget) mwclient/{}".format( + wikiget_version, mwclient_version +) +STD_VERBOSE = 1 +VERY_VERBOSE = 2 |
