Wikipedia-API 0.14.1__tar.gz → 0.15.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/.gitignore +2 -1
  2. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/CHANGES.rst +7 -0
  3. wikipedia_api-0.15.0/DEVELOPMENT.rst +86 -0
  4. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/PKG-INFO +4 -4
  5. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/README.rst +2 -2
  6. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/README_processed.rst +2 -2
  7. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/examples/example_async.py +1 -1
  8. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/examples/example_cli.sh +1 -1
  9. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/examples/example_sync.py +1 -1
  10. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/pyproject.toml +7 -7
  11. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_http_client/base_http_client.py +3 -2
  12. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_version.py +1 -1
  13. wikipedia_api-0.14.1/DEVELOPMENT.rst +0 -47
  14. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/API.rst +0 -0
  15. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/CLI.rst +0 -0
  16. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/DESIGN.rst +0 -0
  17. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/LICENSE +0 -0
  18. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/SKILLS/README.md +0 -0
  19. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/SKILLS/bash.md +0 -0
  20. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/SKILLS/python-async.md +0 -0
  21. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/SKILLS/python-sync.md +0 -0
  22. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/__init__.py +0 -0
  23. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/__init__.py +0 -0
  24. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/coordinate_type.py +0 -0
  25. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/coordinates_prop.py +0 -0
  26. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/direction.py +0 -0
  27. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/geosearch_sort.py +0 -0
  28. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/globe.py +0 -0
  29. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/namespace.py +0 -0
  30. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/redirect_filter.py +0 -0
  31. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/search_info.py +0 -0
  32. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/search_prop.py +0 -0
  33. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/search_qi_profile.py +0 -0
  34. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/search_sort.py +0 -0
  35. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_enums/search_what.py +0 -0
  36. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_http_client/__init__.py +0 -0
  37. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_http_client/async_http_client.py +0 -0
  38. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_http_client/retry_after_wait.py +0 -0
  39. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_http_client/retry_utils.py +0 -0
  40. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_http_client/sync_http_client.py +0 -0
  41. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_image/__init__.py +0 -0
  42. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_image/_base_wikipedia_image.py +0 -0
  43. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_image/async_wikipedia_image.py +0 -0
  44. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_image/wikipedia_image.py +0 -0
  45. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_page/__init__.py +0 -0
  46. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_page/_base_wikipedia_page.py +0 -0
  47. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_page/async_wikipedia_page.py +0 -0
  48. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_page/wikipedia_page.py +0 -0
  49. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_page/wikipedia_page_section.py +0 -0
  50. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_pages_dict/__init__.py +0 -0
  51. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_pages_dict/async_images_dict.py +0 -0
  52. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_pages_dict/async_pages_dict.py +0 -0
  53. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_pages_dict/base_pages_dict.py +0 -0
  54. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_pages_dict/images_dict.py +0 -0
  55. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_pages_dict/pages_dict.py +0 -0
  56. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/__init__.py +0 -0
  57. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/base_params.py +0 -0
  58. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/coordinates_params.py +0 -0
  59. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/geo_search_params.py +0 -0
  60. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/imageinfo_params.py +0 -0
  61. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/images_params.py +0 -0
  62. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/protocols.py +0 -0
  63. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/random_params.py +0 -0
  64. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_params/search_params.py +0 -0
  65. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_resources/__init__.py +0 -0
  66. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_resources/async_wikipedia_resource.py +0 -0
  67. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_resources/base_wikipedia_resource.py +0 -0
  68. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_resources/wikipedia_resource.py +0 -0
  69. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/__init__.py +0 -0
  70. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/coordinate.py +0 -0
  71. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/geo_box.py +0 -0
  72. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/geo_point.py +0 -0
  73. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/geo_search_meta.py +0 -0
  74. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/image_info.py +0 -0
  75. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/search_meta.py +0 -0
  76. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_types/search_results.py +0 -0
  77. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_wikipedia/__init__.py +0 -0
  78. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_wikipedia/async_wikipedia.py +0 -0
  79. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/_wikipedia/wikipedia.py +0 -0
  80. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/cli.py +0 -0
  81. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/__init__.py +0 -0
  82. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/base.py +0 -0
  83. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/category_commands.py +0 -0
  84. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/geo_commands.py +0 -0
  85. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/image_commands.py +0 -0
  86. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/link_commands.py +0 -0
  87. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/page_commands.py +0 -0
  88. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/commands/search_commands.py +0 -0
  89. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/__init__.py +0 -0
  90. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/wiki_connection_error.py +0 -0
  91. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/wiki_http_error.py +0 -0
  92. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/wiki_http_timeout_error.py +0 -0
  93. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/wiki_invalid_json_error.py +0 -0
  94. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/wiki_rate_limit_error.py +0 -0
  95. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/exceptions/wikipedia_exception.py +0 -0
  96. {wikipedia_api-0.14.1 → wikipedia_api-0.15.0}/wikipediaapi/extract_format.py +0 -0
@@ -21,7 +21,8 @@ parts/
21
21
 
22
22
  # IDE and editor files
23
23
  .DS_Store
24
- .claude/
24
+ .claude/*
25
+ !.claude/skills/
25
26
  CLAUDE.md
26
27
  PR_DESCRIPTION.md
27
28
  wikipedia-api-specification
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.15.0
5
+ ----------
6
+
7
+ * Make user agent header compliant with Wikimedia Foundation User-Agent policy - `PR 590`_
8
+
9
+ .. _PR 590: https://github.com/martin-majlis/Wikipedia-API/pull/590
10
+
4
11
  0.14.1
5
12
  ------
6
13
 
@@ -0,0 +1,86 @@
1
+ Development
2
+ ===========
3
+
4
+ Prerequisites
5
+ --------------
6
+
7
+ * Make
8
+ * Python 3.10+
9
+ * Pip
10
+
11
+ Makefile targets
12
+ -----------------
13
+ * ``make run-type-check`` - type checks source code (runs ``uv run ty check wikipediaapi/``)
14
+ * ``make run-ruff`` - lints and checks formatting (runs ``ruff check`` and ``ruff format --check``)
15
+ * ``make requirements-all`` - install all requirements
16
+ * ``make requirements`` - install package requirements
17
+ * ``make requirements-dev`` - install development requirements
18
+ * ``make run-tests`` - run unit tests (pytest)
19
+ * ``make run-tests-integration`` - run VCR integration tests (pytest)
20
+ * ``make run-coverage`` - run code coverage (pytest-cov)
21
+ * ``make pypi-html`` - generates single HTML documentation into ``pypi-doc.html``
22
+ * ``make html`` - generates HTML documentation similar to RTFD into folder ``_build/html/``
23
+ * ``make prepare-release VERSION='1.2.3'`` - bumps version files, runs full pre-release checks, and opens a PR from a ``release/1.2.3`` branch
24
+ * ``make create-github-release VERSION='1.2.3'`` - after the PR is merged, creates a GitHub Release with auto-generated notes, triggering PyPI publish
25
+
26
+ Releasing a New Version
27
+ -----------------------
28
+
29
+ **During development** — as each PR is merged, add a bullet point describing the
30
+ change under the ``Unreleased`` section at the top of ``CHANGES.rst``::
31
+
32
+ Unreleased
33
+ ----------
34
+
35
+ * Add support for foo - `PR 123`_
36
+
37
+ .. _PR 123: https://github.com/martin-majlis/Wikipedia-API/pull/123
38
+
39
+ **When ready to release:**
40
+
41
+ 1. From a clean ``master`` branch, run::
42
+
43
+ make prepare-release VERSION='1.2.3'
44
+
45
+ This will:
46
+
47
+ * Validate the version format and that it is greater than the current version
48
+ * Check that ``CHANGES.rst`` has an ``Unreleased`` section
49
+ * Run the full pre-release check suite (tests, type checks, linting, examples)
50
+ * Create a ``release/1.2.3`` branch
51
+ * Rename ``Unreleased`` → ``1.2.3`` in ``CHANGES.rst`` and bump all version files
52
+ * Commit, push the branch, and open a pull request
53
+
54
+ 2. Review and merge the pull request.
55
+
56
+ 3. After the PR is merged, create the GitHub Release::
57
+
58
+ make create-github-release VERSION='1.2.3'
59
+
60
+ This creates a ``v1.2.3`` tag and GitHub Release with auto-generated release
61
+ notes (based on merged PRs since the last release), which triggers the
62
+ ``release.yml`` workflow to publish the package to PyPI.
63
+
64
+ Usage Statistics
65
+ ----------------
66
+
67
+ * `PIP Downloads`_
68
+ * `Clickpy`_
69
+ * `Libraries.io`_
70
+ * `Deps.dev`_
71
+
72
+ .. _PIP Downloads: https://pypistats.org/packages/wikipedia-api
73
+ .. _Libraries.io: https://libraries.io/pypi/Wikipedia-API
74
+ .. _Deps.dev: https://deps.dev/pypi/wikipedia-api
75
+ .. _Clickpy: https://clickpy.clickhouse.com/dashboard/wikipedia-api
76
+
77
+ Underlying API
78
+ --------------
79
+
80
+ * `API - HP`_
81
+ * `Module - Parse`_
82
+ * `Module - Query`_
83
+
84
+ .. _API - HP: https://www.mediawiki.org/wiki/API:Main_page
85
+ .. _Module - Parse: https://en.wikipedia.org/w/api.php?action=help&modules=parse
86
+ .. _Module - Query: https://en.wikipedia.org/w/api.php?action=help&modules=query
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Wikipedia-API
3
- Version: 0.14.1
3
+ Version: 0.15.0
4
4
  Summary: Python Wrapper for Wikipedia
5
5
  Project-URL: Homepage, https://github.com/martin-majlis/Wikipedia-API
6
6
  Project-URL: Repository, https://github.com/martin-majlis/Wikipedia-API
@@ -26,7 +26,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
26
26
  Classifier: Topic :: Communications :: Email
27
27
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
28
  Requires-Python: >=3.10
29
- Requires-Dist: click==8.3.2
29
+ Requires-Dist: click==8.4.1
30
30
  Requires-Dist: httpx==0.28.1
31
31
  Requires-Dist: tenacity==9.1.4
32
32
  Description-Content-Type: text/x-rst
@@ -89,10 +89,10 @@ Getting single page is straightforward. You have to initialize ``Wikipedia`` (or
89
89
  object and ask for page by its name.
90
90
  To initialize it, you have to provide:
91
91
 
92
- * `user_agent` to identify your project. Please follow the recommended `format`_.
92
+ * `user_agent` to identify your project. **Must include contact information** (email or website) and follow the Wikimedia Foundation `User-Agent policy`_.
93
93
  * `language` to specify language mutation. It has to be one of `supported languages`_.
94
94
 
95
- .. _format: https://meta.wikimedia.org/wiki/User-Agent_policy
95
+ .. _User-Agent policy: https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy
96
96
  .. _supported languages: http://meta.wikimedia.org/wiki/List_of_Wikipedias
97
97
 
98
98
  **Synchronous**
@@ -56,10 +56,10 @@ Getting single page is straightforward. You have to initialize ``Wikipedia`` (or
56
56
  object and ask for page by its name.
57
57
  To initialize it, you have to provide:
58
58
 
59
- * `user_agent` to identify your project. Please follow the recommended `format`_.
59
+ * `user_agent` to identify your project. **Must include contact information** (email or website) and follow the Wikimedia Foundation `User-Agent policy`_.
60
60
  * `language` to specify language mutation. It has to be one of `supported languages`_.
61
61
 
62
- .. _format: https://meta.wikimedia.org/wiki/User-Agent_policy
62
+ .. _User-Agent policy: https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy
63
63
  .. _supported languages: http://meta.wikimedia.org/wiki/List_of_Wikipedias
64
64
 
65
65
  **Synchronous**
@@ -56,10 +56,10 @@ Getting single page is straightforward. You have to initialize ``Wikipedia`` (or
56
56
  object and ask for page by its name.
57
57
  To initialize it, you have to provide:
58
58
 
59
- * `user_agent` to identify your project. Please follow the recommended `format`_.
59
+ * `user_agent` to identify your project. **Must include contact information** (email or website) and follow the Wikimedia Foundation `User-Agent policy`_.
60
60
  * `language` to specify language mutation. It has to be one of `supported languages`_.
61
61
 
62
- .. _format: https://meta.wikimedia.org/wiki/User-Agent_policy
62
+ .. _User-Agent policy: https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy
63
63
  .. _supported languages: http://meta.wikimedia.org/wiki/List_of_Wikipedias
64
64
 
65
65
  **Synchronous**
@@ -28,7 +28,7 @@ from wikipediaapi import coordinates_prop2str
28
28
  # Set to INFO to see the actual API request URLs being made
29
29
  logging.basicConfig(level=logging.WARNING)
30
30
 
31
- user_agent = "Wikipedia-API Example (merlin@example.com)"
31
+ user_agent = "MyCoolBot/1.0 (myemail@example.com)"
32
32
 
33
33
 
34
34
  def print_sections(sections, level=0):
@@ -8,7 +8,7 @@
8
8
 
9
9
  set -euo pipefail
10
10
 
11
- USER_AGENT="Wikipedia-API Example (merlin@example.com)"
11
+ USER_AGENT="MyCoolBot/1.0 (myemail@example.com)"
12
12
 
13
13
  # ──────────────────────────────────────────────────────────────────────────────
14
14
  # 1. Verify installation
@@ -19,7 +19,7 @@ from wikipediaapi import coordinates_prop2str
19
19
  # Set to INFO to see the actual API request URLs being made
20
20
  logging.basicConfig(level=logging.WARNING)
21
21
 
22
- user_agent = "Wikipedia-API Example (merlin@example.com)"
22
+ user_agent = "MyCoolBot/1.0 (myemail@example.com)"
23
23
 
24
24
  # ──────────────────────────────────────────────────────────────────────────────
25
25
  # 1. Creating a Wikipedia client
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "Wikipedia-API"
7
- version = "0.14.1"
7
+ version = "0.15.0"
8
8
  description = "Python Wrapper for Wikipedia"
9
9
  readme = {file = "README_processed.rst", content-type = "text/x-rst"}
10
10
  license = {text = "MIT"}
@@ -32,26 +32,26 @@ classifiers = [
32
32
  ]
33
33
  requires-python = ">=3.10"
34
34
  dependencies = [
35
- "click==8.3.2",
35
+ "click==8.4.1",
36
36
  "httpx==0.28.1",
37
37
  "tenacity==9.1.4",
38
38
  ]
39
39
 
40
40
  [dependency-groups]
41
41
  dev = [
42
- "coverage==7.13.5",
42
+ "coverage==7.14.0",
43
43
  "ruff>=0.11.0",
44
44
  "ty==0.0.27",
45
- "pre-commit==4.5.1",
45
+ "pre-commit==4.6.0",
46
46
  "pygments==2.20.0",
47
47
  "pyupgrade==3.21.2",
48
48
  "pytest==9.0.3",
49
49
  "pytest-asyncio==1.3.0",
50
50
  "pytest-cov==7.1.0",
51
- "tox==4.52.0",
51
+ "tox==4.54.0",
52
52
  "anyio[trio]==4.13.0",
53
53
  "respx==0.23.1",
54
- "types-setuptools==82.0.0.20260408",
54
+ "types-setuptools==82.0.0.20260518",
55
55
  "pytest-recording>=0.13.2",
56
56
  "vcrpy>=6.0.0",
57
57
  "ty>=0.0.27",
@@ -63,7 +63,7 @@ build = [
63
63
  "rst2html==2020.7.4",
64
64
  "setuptools==82.0.1",
65
65
  "twine>=6.2.0",
66
- "wheel==0.46.3",
66
+ "wheel==0.47.0",
67
67
  ]
68
68
  testing = [
69
69
  "anyio[trio]==4.13.0",
@@ -116,7 +116,7 @@ class BaseHTTPClient(ABC):
116
116
  default_headers.get("User-Agent"),
117
117
  )
118
118
 
119
- default_headers["User-Agent"] = used_user_agent + " (" + USER_AGENT + ")"
119
+ default_headers["User-Agent"] = used_user_agent + " " + USER_AGENT
120
120
 
121
121
  self.language = used_language
122
122
  self.variant = used_variant
@@ -224,7 +224,8 @@ class BaseHTTPClient(ABC):
224
224
  if not user_agent or len(user_agent) < MIN_USER_AGENT_LEN:
225
225
  raise AssertionError(
226
226
  "Please, be nice to Wikipedia and specify user agent - "
227
- + "https://meta.wikimedia.org/wiki/User-Agent_policy. Current user_agent: '"
227
+ + "https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_"
228
+ + "User-Agent_Policy. Current user_agent: '"
228
229
  + str(user_agent)
229
230
  + "' is not sufficient. "
230
231
  + "Use Wikipedia(user_agent='your-user-agent', language='"
@@ -1,4 +1,4 @@
1
1
  """Version information for Wikipedia-API."""
2
2
 
3
- __version__ = (0, 14, 1)
3
+ __version__ = (0, 15, 0)
4
4
  __version_str__ = ".".join(str(s) for s in __version__)
@@ -1,47 +0,0 @@
1
- Development
2
- ===========
3
-
4
- Prerequisites
5
- --------------
6
-
7
- * Make
8
- * Python 3.10+
9
- * Pip
10
-
11
- Makefile targets
12
- -----------------
13
- * ``make run-type-check`` - type checks source code (runs ``uv run ty check wikipediaapi/``)
14
- * ``make run-ruff`` - lints and checks formatting (runs ``ruff check`` and ``ruff format --check``)
15
- * ``make requirements-all`` - install all requirements
16
- * ``make requirements`` - install package requirements
17
- * ``make requirements-dev`` - install development requirements
18
- * ``make run-tests`` - run unit tests (pytest)
19
- * ``make run-tests-integration`` - run VCR integration tests (pytest)
20
- * ``make run-coverage`` - run code coverage (pytest-cov)
21
- * ``make pypi-html`` - generates single HTML documentation into ``pypi-doc.html``
22
- * ``make html`` - generates HTML documentation similar to RTFD into folder ``_build/html/``
23
- * ``make release`` - creates new release as well as git tag
24
-
25
- Usage Statistics
26
- ----------------
27
-
28
- * `PIP Downloads`_
29
- * `Clickpy`_
30
- * `Libraries.io`_
31
- * `Deps.dev`_
32
-
33
- .. _PIP Downloads: https://pypistats.org/packages/wikipedia-api
34
- .. _Libraries.io: https://libraries.io/pypi/Wikipedia-API
35
- .. _Deps.dev: https://deps.dev/pypi/wikipedia-api
36
- .. _Clickpy: https://clickpy.clickhouse.com/dashboard/wikipedia-api
37
-
38
- Underlying API
39
- --------------
40
-
41
- * `API - HP`_
42
- * `Module - Parse`_
43
- * `Module - Query`_
44
-
45
- .. _API - HP: https://www.mediawiki.org/wiki/API:Main_page
46
- .. _Module - Parse: https://en.wikipedia.org/w/api.php?action=help&modules=parse
47
- .. _Module - Query: https://en.wikipedia.org/w/api.php?action=help&modules=query
File without changes
File without changes
File without changes