././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1723405414.3553734
mwclient-0.11.0/ 0000755 0001751 0000177 00000000000 14656212146 013027 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/.editorconfig 0000644 0001751 0000177 00000000465 14656212142 015505 0 ustar 00runner docker # top-most .editorconfig file
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.cfg]
indent_size = tab
[{make.bat, Makefile}]
indent_style = tab
[*.py]
max_line_length = 90
[*.{yaml, yml}]
indent_size = 2
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/.landscape.yaml 0000644 0001751 0000177 00000000137 14656212142 015720 0 ustar 00runner docker python-targets:
- 2
- 3
pylint:
disable:
- redefined-builtin
- too-many-arguments ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/CHANGELOG.md 0000644 0001751 0000177 00000022622 14656212142 014640 0 ustar 00runner docker # Release Notes for mwclient
See [GitHub releases](https://github.com/mwclient/mwclient/releases/) for
release notes for mwclient 0.7.1+.
## Changes in version 0.7.0
Mwclient 0.7.0 was released on 27 September 2014.
Upgrade notices:
- This version requires minimum Python 2.6 and MediaWiki 1.16.
Support for Python 2.4–2.5 and MediaWiki 1.11–1.15 has been dropped.
- The `Page.edit()` method has been renamed to `Page.text()`.
While `Page.edit()` is deprecated, it will be available for a long time.
The old `Page.text` attribute, that used to store a copy of the wikitext
from the last `Page.edit()` call, has been removed entirely.
The `readonly` argument has also been removed (it was never really
implemented, so it acted only as a dummy argument before the removal).
- The `Page.get_expanded()` method has been deprecated in favour of
calling `Page.text(expandtemplates=True)`.
Detailed changelog:
* [2012-08-30] [@btongminh](https://github.com/btongminh):
Allow setting both the upload description and the page content separately.
[0aa748f](https://github.com/mwclient/mwclient/commit/0aa748f).
* [2012-08-30] [@tommorris](https://github.com/tommorris):
Improve documentation.
[a2723e7](https://github.com/mwclient/mwclient/commit/a2723e7).
* [2013-02-15] [@waldyrious](https://github.com/waldyrious):
Converted the repository to git and moved from sourceforge to github.
[#1](https://github.com/mwclient/mwclient/issues/1) (also
[#11](https://github.com/mwclient/mwclient/issues/11),
[#13](https://github.com/mwclient/mwclient/issues/13) and
[#15](https://github.com/mwclient/mwclient/issues/15)).
* [2013-03-20] [@eug48](https://github.com/eug48):
Support for customising the useragent.
[773adf9](https://github.com/mwclient/mwclient/commit/773adf9),
[#16](https://github.com/mwclient/mwclient/pull/16).
* [2013-03-20] [@eug48](https://github.com/eug48):
Removed unused `Request` class.
[99e786d](https://github.com/mwclient/mwclient/commit/99e786d),
[#16](https://github.com/mwclient/mwclient/pull/16).
* [2013-05-13] [@danmichaelo](https://github.com/danmichaelo):
Support for requesting pages by their page id (`site.pages[page_id]`).
[a1a2ced](https://github.com/danmichaelo/mwclient/commit/a1a2ced),
[#19](https://github.com/mwclient/mwclient/pull/19).
* [2013-05-13] [@danmichaelo](https://github.com/danmichaelo):
Support for editing sections.
[546f77d](https://github.com/danmichaelo/mwclient/commit/546f77d),
[#19](https://github.com/mwclient/mwclient/pull/19).
* [2013-05-13] [@danmichaelo](https://github.com/danmichaelo):
New method `Page.redirects_to()` and helper method `Page.resolve_redirect()`.
[3b851cb](https://github.com/danmichaelo/mwclient/commit/3b851cb),
[36e8dcc](https://github.com/danmichaelo/mwclient/commit/36e8dcc),
[#19](https://github.com/mwclient/mwclient/pull/19).
* [2013-05-13] [@danmichaelo](https://github.com/danmichaelo):
Support argument `action` with `logevents()`.
[241ed37](https://github.com/danmichaelo/mwclient/commit/241ed37),
[#19](https://github.com/mwclient/mwclient/pull/19).
* [2013-05-13] [@danmichaelo](https://github.com/danmichaelo):
Support argument `page` with `parse()`.
[223aa0](https://github.com/danmichaelo/mwclient/commit/223aa0),
[#19](https://github.com/mwclient/mwclient/pull/19).
* [2013-11-14] [@kyv](https://github.com/kyv):
Allow setting HTTP `Authorization` header.
[HTTP headers](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.8).
[72fc49a](https://github.com/kyv/mwclient/commit/72fc49a).
* [2013-11-15] [@kyv](https://github.com/kyv):
Add support for the `ask` API action
[provided by Semantic MediaWiki](http://semantic-mediawiki.org/wiki/Ask_API).
[0a16afc](https://github.com/kyv/mwclient/commit/0a16afc).
* [2014-05-02] [@danmichaelo](https://github.com/danmichaelo):
Quickfix for [#38](https://github.com/mwclient/mwclient/issues/38).
[98b850b](https://github.com/mwclient/mwclient/commit/98b850b).
* [2014-06-13] [@tuffnatty](https://github.com/tuffnatty):
Fix updating of Page.last_rev_time upon save().
[d0cc7db](https://github.com/mwclient/mwclient/commit/d0cc7db),
[#41](https://github.com/mwclient/mwclient/issues/41).
* [2014-06-13] [@jimt](https://github.com/jimt), [@danmichaelo](https://github.com/danmichaelo):
Support more arguments to `list=allusers`.
[7cb4383](https://github.com/mwclient/mwclient/commit/7cb4383),
[#8](https://github.com/mwclient/mwclient/issues/8).
* [2014-08-18] [@danmichaelo](https://github.com/danmichaelo):
Replace http.py with the Requests library.
[593cb44](https://github.com/mwclient/mwclient/commit/593cb44),
[#45](https://github.com/mwclient/mwclient/issues/45).
* [2014-08-18] [@jaloren](https://github.com/jaloren), [@danmichaelo](https://github.com/danmichaelo):
Don't crash if edit response does not contain timestamp.
[bd7bc3b](https://github.com/mwclient/mwclient/commit/bd7bc3b),
[0ef9a17](https://github.com/mwclient/mwclient/commit/0ef9a17),
[#57](https://github.com/mwclient/mwclient/issues/57).
* [2014-08-31] [@danmichaelo](https://github.com/danmichaelo):
Retry on internal_api_error_DBQueryError.
[d0ce831](https://github.com/mwclient/mwclient/commit/d0ce831).
* [2014-09-22] [@danmichaelo](https://github.com/danmichaelo):
Rename `Page.edit()` to `Page.text()`. Note that `text` is now a required
parameter to `Page.save()`.
[61155f1](https://github.com/mwclient/mwclient/commit/61155f1),
[#51](https://github.com/mwclient/mwclient/issues/51).
* [2014-09-27] [@danmichaelo](https://github.com/danmichaelo):
Add `expandtemplates` argument to `Page.text()` and deprecate `Page.get_expanded()`
[57df5f4](https://github.com/mwclient/mwclient/commit/57df5f4).
## Changes in version 0.6.5
Mwclient 0.6.5 was released on 6 May 2011.
* [2011-02-16] Fix for upload by URL.
[7ceb14b](https://github.com/mwclient/mwclient/commit/7ceb14b).
* [2011-05-06] Explicitly convert the `Content-Length` header to `str`,
avoiding a `TypeError` on some versions of Python.
[4a829bc](https://github.com/mwclient/mwclient/commit/4a829bc),
[2ca1fbd](https://github.com/mwclient/mwclient/commit/2ca1fbd).
* [2011-05-06] Handle `readapidenied` error in site init.
[c513396](https://github.com/mwclient/mwclient/commit/c513396).
* [2011-05-06] Fix version parsing for almost any sane version string.
[9f5339f](https://github.com/mwclient/mwclient/commit/9f5339f).
## Changes in version 0.6.4
Mwclient 0.6.3 was released on 7 April 2010.
* [2009-08-27] Added support for upload API.
[56eeb9b](https://github.com/mwclient/mwclient/commit/56eeb9b),
[0d7caab](https://github.com/mwclient/mwclient/commit/0d7caab) (see also
[610411a](https://github.com/mwclient/mwclient/commit/610411a)).
* [2009-11-02] Added `prop=duplicatefiles`.
[241e5d6](https://github.com/mwclient/mwclient/commit/241e5d6).
* [2009-11-02] Properly fix detection of alpha versions.
[241e5d6](https://github.com/mwclient/mwclient/commit/241e5d6).
* [2009-11-14] Added support for built-in JSON library.
[73e9cd6](https://github.com/mwclient/mwclient/commit/73e9cd6).
* [2009-11-15] Handle badtoken once.
[4b384e1](https://github.com/mwclient/mwclient/commit/4b384e1).
* [2010-02-23] Fix module conflict with simplejson-1.x
by inserting mwclient path at the beginning of `sys.path`
instead of the end.
[cd37ef0](https://github.com/mwclient/mwclient/commit/cd37ef0).
* [2010-02-23] Fix revision iteration.
[09b68e9](https://github.com/mwclient/mwclient/commit/09b68e9),
[2ad32f1](https://github.com/mwclient/mwclient/commit/2ad32f1),
[afdd5e8](https://github.com/mwclient/mwclient/commit/afdd5e8),
[993b346](https://github.com/mwclient/mwclient/commit/993b346),
[#3](https://github.com/mwclient/mwclient/issues/3).
* [2010-04-07] Supply token on login if necessary.
[3731de5](https://github.com/mwclient/mwclient/commit/3731de5).
## Changes in version 0.6.3
Mwclient 0.6.3 was released on 16 July 2009.
* Added domain parameter to login
* Applied edit fix to `page_nowriteapi`
* Allow arbitrary data to be passed to `page.save`
* Fix mwclient on WMF wikis
## Changes in version 0.6.2
Mwclient 0.6.2 was released on 2 May 2009.
* Compatibility fixes for MediaWiki 1.13
* Download fix for images
* Full support for editing pages via write API
and split of compatibility to another file.
* Added `expandtemplates` API call
* Added and fixed moving via API
* Raise an `ApiDisabledError` if the API is disabled
* Added support for HTTPS
* Fixed email code
* Mark edits as bots by default.
* Added `action=parse`. Modified patch by Brian Mingus.
* Improved general HTTP and upload handling.
## Changes in version 0.6.1
Mwclient 0.6.1 was released in May 2008.
No release notes were kept for this version.
## Changes in version 0.6.0
Mwclient 0.6.0 was released in February 2008.
This was the first official release via Sourceforge.
This version removed some Pywikipedia influences added in 0.4.
## Changes in versions 0.5
Mwclient 0.5 was an architectural redesign
which accomplished easy extendability
and added proper support for continuations.
## Changes in version 0.4
Mwclient 0.4 was somewhat the basis for future releases
and shows the current module architecture.
It was influenced by Pywikipedia,
which was discovered by the author at the time.
## Changes in versions 0.2 and 0.3
Mwclient 0.2 and 0.3 were probably a bit of a generalization,
and maybe already used the API for some part,
but details are unknown.
## Mwclient 0.1
Mwclient 0.1 was a non-API module for accessing Wikipedia using an XML parser.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/CONTRIBUTING.md 0000644 0001751 0000177 00000000443 14656212142 015255 0 ustar 00runner docker # Contributing to the project
Thank you for your interest in contributing to the project!
For information on mwclient development, please see
https://mwclient.readthedocs.io/en/latest/development/
(or the local file `docs/source/development/index.rst` from which the webpage is generated)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/CREDITS.md 0000644 0001751 0000177 00000004365 14656212142 014452 0 ustar 00runner docker The **mwclient** framework was originally written by Bryan Tong Minh
([@btongminh](https://github.com/btongminh))
and released in 2008 [on Sourceforge](http://sourceforge.net/projects/mwclient/).
Bryan maintained the project until version 0.6.5, released on 6 May 2011.
In 2013, Waldir Pimenta ([@waldyrious](https://github.com/waldyrious))
contacted Bryan and proposed helping out with a conversion from SVN to git
and moving the project to Github.
After getting the appropriate permissions,
he performed the repository conversion
using [sf2github](http://github.com/ttencate/sf2github)
([#1](https://github.com/mwclient/mwclient/issues/1)),
converted the wiki previously hosted on sourceforge
([#12](https://github.com/mwclient/mwclient/issues/12)),
updated the sourceforge project page
([#15](https://github.com/mwclient/mwclient/issues/15)),
identified the users who had created bug reports
([#1, comment](https://github.com/mwclient/mwclient/issues/1#issuecomment-13972022)),
contacted the authors of forks of the project
suggesting them to provide their changes as PRs
([#14](https://github.com/mwclient/mwclient/issues/14)),
and handed the repository to Bryan
([#11](https://github.com/mwclient/mwclient/issues/11)).
Dan Michael O. Heggø ([@danmichaelo](https://github.com/danmichaelo))
was the author of one of those forks,
and the most prolific submitter of PRs
in the early history of mwclient as a git repository.
Not long after the git transition, the repository was moved to an organization
([#12, comment](https://github.com/mwclient/mwclient/issues/12#issuecomment-20447515)),
and Dan became the main force behind the 2014 release of version 0.7.0
(the first after a 3-year hiatus).
From then until the 0.10.1 release in 2020, he was the lead maintainer of the project,
which has attracted contributions from
[several other people](../../graphs/contributors).
From 2023, the project is maintained by
Marc Trölitzsch ([@marcfrederick](https://github.com/marcfrederick)),
Adam Williamson ([@adamwill](https://github.com/adamwill)),
and Megan Cutrofello ([@RheingoldRiver](https://github.com/RheingoldRiver)).
For more details on the technical history of the project,
see the [CHANGELOG.md](CHANGELOG.md) document.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/LICENSE.md 0000644 0001751 0000177 00000002126 14656212142 014430 0 ustar 00runner docker ## MIT License
Copyright (c) Bryan Tong Minh, Dan Michael O. Heggø and contributors
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/MANIFEST.in 0000644 0001751 0000177 00000000375 14656212142 014566 0 ustar 00runner docker include CHANGELOG.md
include CONTRIBUTING.md
include CREDITS.md
include README.md
include LICENSE.md
# prospector config - https://github.com/landscapeio/prospector
include .landscape.yaml
include .editorconfig
include tox.ini
graft docs
graft examples
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1723405414.3553734
mwclient-0.11.0/PKG-INFO 0000644 0001751 0000177 00000007204 14656212146 014127 0 ustar 00runner docker Metadata-Version: 2.1
Name: mwclient
Version: 0.11.0
Summary: MediaWiki API client
Home-page: https://github.com/mwclient/mwclient
Author: Bryan Tong Minh
Author-email: bryan.tongminh@gmail.com
License: MIT
Keywords: mediawiki wikipedia
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: requests-oauthlib
mwclient
[![Build status][build-status-img]](https://github.com/mwclient/mwclient)
[![Test coverage][test-coverage-img]](https://coveralls.io/r/mwclient/mwclient)
[![Latest version][latest-version-img]](https://pypi.python.org/pypi/mwclient)
[![MIT license][mit-license-img]](http://opensource.org/licenses/MIT)
[![Documentation status][documentation-status-img]](http://mwclient.readthedocs.io/en/latest/)
[![Issue statistics][issue-statistics-img]](http://isitmaintained.com/project/mwclient/mwclient)
[![Gitter chat][gitter-chat-img]](https://gitter.im/mwclient/mwclient)
[build-status-img]: https://github.com/mwclient/mwclient/actions/workflows/tox.yml/badge.svg
[test-coverage-img]: https://img.shields.io/coveralls/mwclient/mwclient.svg
[latest-version-img]: https://img.shields.io/pypi/v/mwclient.svg
[mit-license-img]: https://img.shields.io/github/license/mwclient/mwclient.svg
[documentation-status-img]: https://readthedocs.org/projects/mwclient/badge/
[issue-statistics-img]: http://isitmaintained.com/badge/resolution/mwclient/mwclient.svg
[gitter-chat-img]: https://img.shields.io/gitter/room/mwclient/mwclient.svg
mwclient is a lightweight Python client library to the
[MediaWiki API](https://mediawiki.org/wiki/API)
which provides access to most API functionality.
It works with Python 3.5 and above,
and supports MediaWiki 1.16 and above.
For functions not available in the current MediaWiki,
a `MediaWikiVersionError` is raised.
The current stable
[version 0.11.0](https://github.com/mwclient/mwclient/archive/v0.11.0.zip)
is [available through PyPI](https://pypi.python.org/pypi/mwclient):
```
$ pip install mwclient
```
The current [development version](https://github.com/mwclient/mwclient)
can be installed from GitHub:
```
$ pip install git+git://github.com/mwclient/mwclient.git
```
Please see the [changelog
document](https://github.com/mwclient/mwclient/blob/master/CHANGELOG.md)
for a list of changes.
mwclient was originally written by Bryan Tong Minh. It was maintained
for many years by Dan Michael O. Heggø, with assistance from Waldir
Pimenta. It is currently maintained by Marc Trölitzsch, Adam Williamson
and Megan Cutrofello. The best way to get in touch with the maintainers
is by filing an issue or a pull request.
## Documentation
Up-to-date documentation is hosted [at Read the Docs](http://mwclient.readthedocs.io/en/latest/).
It includes a user guide to get started using mwclient, a reference guide,
implementation and development notes.
There is also some documentation on the [GitHub wiki](https://github.com/mwclient/mwclient/wiki)
that hasn't been ported yet.
If you want to help, you're welcome!
## Contributing
Patches are welcome! See [this page](https://mwclient.readthedocs.io/en/latest/development/)
for information on how to get started with mwclient development.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/README.md 0000644 0001751 0000177 00000005566 14656212142 014316 0 ustar 00runner docker
mwclient
[![Build status][build-status-img]](https://github.com/mwclient/mwclient)
[![Test coverage][test-coverage-img]](https://coveralls.io/r/mwclient/mwclient)
[![Latest version][latest-version-img]](https://pypi.python.org/pypi/mwclient)
[![MIT license][mit-license-img]](http://opensource.org/licenses/MIT)
[![Documentation status][documentation-status-img]](http://mwclient.readthedocs.io/en/latest/)
[![Issue statistics][issue-statistics-img]](http://isitmaintained.com/project/mwclient/mwclient)
[![Gitter chat][gitter-chat-img]](https://gitter.im/mwclient/mwclient)
[build-status-img]: https://github.com/mwclient/mwclient/actions/workflows/tox.yml/badge.svg
[test-coverage-img]: https://img.shields.io/coveralls/mwclient/mwclient.svg
[latest-version-img]: https://img.shields.io/pypi/v/mwclient.svg
[mit-license-img]: https://img.shields.io/github/license/mwclient/mwclient.svg
[documentation-status-img]: https://readthedocs.org/projects/mwclient/badge/
[issue-statistics-img]: http://isitmaintained.com/badge/resolution/mwclient/mwclient.svg
[gitter-chat-img]: https://img.shields.io/gitter/room/mwclient/mwclient.svg
mwclient is a lightweight Python client library to the
[MediaWiki API](https://mediawiki.org/wiki/API)
which provides access to most API functionality.
It works with Python 3.5 and above,
and supports MediaWiki 1.16 and above.
For functions not available in the current MediaWiki,
a `MediaWikiVersionError` is raised.
The current stable
[version 0.11.0](https://github.com/mwclient/mwclient/archive/v0.11.0.zip)
is [available through PyPI](https://pypi.python.org/pypi/mwclient):
```
$ pip install mwclient
```
The current [development version](https://github.com/mwclient/mwclient)
can be installed from GitHub:
```
$ pip install git+git://github.com/mwclient/mwclient.git
```
Please see the [changelog
document](https://github.com/mwclient/mwclient/blob/master/CHANGELOG.md)
for a list of changes.
mwclient was originally written by Bryan Tong Minh. It was maintained
for many years by Dan Michael O. Heggø, with assistance from Waldir
Pimenta. It is currently maintained by Marc Trölitzsch, Adam Williamson
and Megan Cutrofello. The best way to get in touch with the maintainers
is by filing an issue or a pull request.
## Documentation
Up-to-date documentation is hosted [at Read the Docs](http://mwclient.readthedocs.io/en/latest/).
It includes a user guide to get started using mwclient, a reference guide,
implementation and development notes.
There is also some documentation on the [GitHub wiki](https://github.com/mwclient/mwclient/wiki)
that hasn't been ported yet.
If you want to help, you're welcome!
## Contributing
Patches are welcome! See [this page](https://mwclient.readthedocs.io/en/latest/development/)
for information on how to get started with mwclient development.
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1723405414.3513734
mwclient-0.11.0/docs/ 0000755 0001751 0000177 00000000000 14656212146 013757 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/Makefile 0000644 0001751 0000177 00000015173 14656212142 015422 0 ustar 00runner docker # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
endif
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
help:
@echo "Please use \`make ' where is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " xml to make Docutils-native XML files"
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
clean:
rm -rf $(BUILDDIR)/*
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/mwclient.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/mwclient.qhc"
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/mwclient"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/mwclient"
@echo "# devhelp"
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
latexpdfja:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through platex and dvipdfmx..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."
info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/make.bat 0000644 0001751 0000177 00000014510 14656212142 015361 0 ustar 00runner docker @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^` where ^ is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. xml to make Docutils-native XML files
echo. pseudoxml to make pseudoxml-XML files for display purposes
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
%SPHINXBUILD% 2> nul
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\mwclient.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\mwclient.ghc
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "latexpdf" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf
cd %BUILDDIR%/..
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "latexpdfja" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf-ja
cd %BUILDDIR%/..
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
if "%1" == "xml" (
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The XML files are in %BUILDDIR%/xml.
goto end
)
if "%1" == "pseudoxml" (
%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
goto end
)
:end
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/requirements.txt 0000644 0001751 0000177 00000000046 14656212142 017237 0 ustar 00runner docker sphinx==7.2.5
sphinx_rtd_theme==1.3.0
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1723405414.3513734
mwclient-0.11.0/docs/source/ 0000755 0001751 0000177 00000000000 14656212146 015257 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/source/conf.py 0000644 0001751 0000177 00000021022 14656212142 016547 0 ustar 00runner docker # -*- coding: utf-8 -*-
#
# mwclient documentation build configuration file, created by
# sphinx-quickstart on Sat Sep 27 11:19:56 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import datetime
import sys
import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../..'))
import sphinx_rtd_theme
import mwclient
from mwclient import __version__
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon'
]
# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = 'mwclient'
copyright = '{0}, Bryan Tong Minh'.format(datetime.datetime.now().year)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = __version__
# The full version, including alpha/beta/rc tags.
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = []
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = 'sphinx_rtd_theme'
# html_theme_options = {'github_fork': 'mwclient/mwclient'}
html_theme_options = {
# 'sticky_navigation': True # Set to False to disable the sticky nav while scrolling.
# 'logo_only': True, # if we have a html_logo below, this shows /only/ the logo with no title text
}
# html_style = 'css/my_theme.css'
# The name for this set of Sphinx documents. If None, it defaults to
# " v documentation".
#html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
# html_logo = 'logo.png'
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
#html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
# If false, no index is generated.
html_use_index = True
# If true, the index is split into individual pages for each letter.
html_split_index = False
# If true, links to the reST sources are added to the pages.
html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'mwclientdoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'mwclient.tex', 'mwclient Documentation',
'Bryan Tong Minh', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
latex_logo = 'logo.png'
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'mwclient', 'mwclient Documentation',
['Bryan Tong Minh'], 1)
]
# If true, show URL addresses after external links.
#man_show_urls = False
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'mwclient', 'mwclient Documentation',
'Bryan Tong Minh', 'mwclient', 'One line description of project.',
'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'requests': ('http://requests.readthedocs.org/en/latest/', None)
}
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1723405414.3513734
mwclient-0.11.0/docs/source/development/ 0000755 0001751 0000177 00000000000 14656212146 017601 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/source/development/index.rst 0000644 0001751 0000177 00000007021 14656212142 021436 0 ustar 00runner docker .. _development:
Development
===========
Mwclient development is coordinated at https://github.com/mwclient/mwclient.
Patches are very welcome. If there's something you want to discuss first,
we have a `Gitter chatroom `_.
Development environment
-----------------------
If you plan to submit a pull request, you should first
`fork `_
the mwclient repo on GitHub, then check out the original repository
and configure your fork as a remote:
.. code:: bash
$ git clone https://github.com/mwclient/mwclient.git
$ cd mwclient
$ git remote add fork git@github.com:MYUSERNAME/mwclient.git
You can then use pip to do an "editable" install so that your
edits will be immediately available for (both interactive
and automated) testing:
.. code:: bash
$ pip install -e .
Create a new branch for your changes:
.. code:: bash
$ git checkout -b my-branch
Test suite
----------
mwclient ships with a test suite based on `pytest `_.
While it's far from complete, it can sometimes alert you if you break things.
The easiest way to run the tests is:
.. code:: bash
$ python setup.py test
This will make an in-place build and download test dependencies locally if needed.
Tests will run faster, however, if you do an
`editable install `_
and run pytest directly:
.. code:: bash
$ pip install pytest pytest-cov flake8 responses mock
$ pip install -e .
$ py.test
If you want to test with different Python versions in isolated virtualenvs,
you can use `Tox `_. A `tox.ini` file is included.
.. code:: bash
$ pip install tox
$ tox
If you would like to expand the test suite by adding more tests, please go ahead!
Updating/expanding the documentation
------------------------------------
Documentation consists of both a manually compiled user guide
(under ``docs/user``) and a reference guide generated from the docstrings,
using Sphinx autodoc with the napoleon extension.
Documentation is built automatically on `ReadTheDocs `_
after each commit.
To build the documentation locally for testing:
.. code:: bash
$ pip install Sphinx sphinx-rtd-theme
$ cd docs
$ make html
When writing docstrings, try to adhere to the
`Google style `_.
Making a pull request
---------------------
Make sure to run tests before committing. When it comes to the commit message,
there's no specific requirements for the format, but try to explain your changes
in a clear and concise manner.
If it's been some time since you forked, please consider rebasing your branch
on the main master branch to ease merging:
.. code:: bash
$ git rebase master
When it is ready, push your branch to your remote:
.. code:: bash
$ git push -u fork my-branch
Then you can open a pull request on GitHub. You should see a URL to do this
when you push your branch.
Making a release
----------------
These instructions are for maintainers of the project.
To cut a release, ensure ``CHANGELOG.md`` is updated, then use
`bump-my-version `_:
.. code:: bash
$ pip install bump-my-version
$ bump-my-version bump major|minor|patch
Then check the commit looks correct and is tagged vX.Y.Z, and push. The
``.github/workflows/release.yml`` action will publish to PyPI.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/source/index.rst 0000644 0001751 0000177 00000004662 14656212142 017124 0 ustar 00runner docker
mwclient: lightweight MediaWiki client
======================================
.. image:: logo.png
:align: right
:width: 30%
Mwclient is a :ref:`MIT licensed ` client library to the `MediaWiki API`_
that should work well with both Wikimedia wikis and other wikis running
MediaWiki 1.16 or above. It works with Python 2.7 and 3.3+.
.. _install:
Installation
------------
Installing Mwclient is simple with `pip `_, just run
this in your terminal:
.. code:: bash
pip install mwclient
Quickstart
----------
.. code-block:: python
>>> user_agent = 'MyCoolTool/0.2 (xyz@example.org)'
>>> site = mwclient.Site('en.wikipedia.org', clients_useragent=user_agent)
>>> page = site.pages['Leipäjuusto']
>>> page.text()
'{{Unreferenced|date=September 2009}}\n[[Image:Leip\xe4juusto cheese with cloudberry jam.jpg|thumb|Leip\xe4juusto with [[cloudberry]] jam]]\n\'\'\'Leip\xe4juusto\'\'\' (bread cheese) or \'\'juustoleip\xe4\'\', which is also known in English as \'\'\'Finnish squeaky cheese\'\'\', is a fresh [[cheese]] traditionally made from cow\'s [[beestings]], rich milk from a cow that has recently calved.'
>>> [x for x in page.categories()]
[>,
>,
>,
>]
User guide
----------
This guide is intended as an introductory overview, and
explains how to make use of the most important features of
mwclient.
.. toctree::
:maxdepth: 2
user/index
Reference guide
---------------
If you are looking for information on a specific function, class or method,
this part of the documentation is for you. It's autogenerated
from the source code.
.. toctree::
:maxdepth: 3
reference/index
Development
-----------
Looking for information on contributing to mwclient development?
.. toctree::
:maxdepth: 3
development/index
.. _license:
MIT License
-----------
.. include:: ../../LICENSE.md
Indices and tables
------------------
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. _`MediaWiki API`: https://www.mediawiki.org/wiki/API
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1723405410.0
mwclient-0.11.0/docs/source/logo.png 0000644 0001751 0000177 00000011201 14656212142 016714 0 ustar 00runner docker PNG
IHDR /f? sBIT|d pHYs ) )"ߌ tEXtSoftware www.inkscape.org< tEXtTitle MwClient logo" IDATx{}(P.NZM6ZHDR7tIjQ@kJ0a1UtdL4ZӚʊI"6Q\T.?~sx^~=qsg{q/1B !GC"1 !DbB$8Ip!B$&!HLC"1 !DbB$8Ip!;ȃ͛7oa]f
а
3aJr"H3 @0
=wGEH`
0
| B(!,\`08s`
pcAENDρ2mHp#ˁkS `nϴ,f!7D}L{%,6@
^p`lfEXzNALD&r#a0t&`-p5EZ62PϴP?Z"&")rbJww5['jxL==d[+37o^&`t7ra:~x|B3B։cD֊A$8׀2yxY_(x
p`w c
>|Q|hT! =vOJ|uoux*o M5
?8X
L]ChԚ&N]@&SUnhcFhT ".dOѺk^x, hO$8
,)NP7jx;p>8xȚF@3%`ݵԣ,9(GA*4RШ<:;7QgKo0TyG '0R;~K&9X&O[!J?3ok&2:c4J?Ip!&=re]}[viN@09w0sWVu`vji&EN$8rRv:rl{/uu20.?9tz}cO n]!?ʵH?&jTӌAȘG*3w5N',L'.]D#JG)obٞVW1M|W0͖GAnY;~3oj 8~p