diff options
| author | Cody Logan <clpo13@gmail.com> | 2023-09-26 15:17:04 -0700 |
|---|---|---|
| committer | Cody Logan <clpo13@gmail.com> | 2023-09-26 15:17:04 -0700 |
| commit | a1995912ed24b37a990f3fcd5e91dbf7b46669fb (patch) | |
| tree | aa45974d0c999f2dd9a1684e43913b51b0184aa1 /src/wikiget/__init__.py | |
| parent | bb0bf8f0c79c31114a615cb201505de3fae15044 (diff) | |
| download | wikiget-a1995912ed24b37a990f3fcd5e91dbf7b46669fb.tar.gz wikiget-a1995912ed24b37a990f3fcd5e91dbf7b46669fb.zip | |
Reorganize file tree
Diffstat (limited to 'src/wikiget/__init__.py')
| -rw-r--r-- | src/wikiget/__init__.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/wikiget/__init__.py b/src/wikiget/__init__.py new file mode 100644 index 0000000..4adcae3 --- /dev/null +++ b/src/wikiget/__init__.py @@ -0,0 +1,28 @@ +# wikiget - CLI tool for downloading files from Wikimedia sites +# Copyright (C) 2018-2021 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 .version import __version__ as wikiget_version + +# set some global constants +BLOCKSIZE = 65536 +CHUNKSIZE = 1024 +DEFAULT_SITE = "commons.wikimedia.org" +DEFAULT_PATH = "/w/" +USER_AGENT = (f"wikiget/{wikiget_version} (https://github.com/clpo13/wikiget) " + f"mwclient/{mwclient_version}") |
