API:Client code/ko: Difference between revisions
Updating to match new version of source page |
Updating to match new version of source page |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 369: | Line 369: | ||
|{{yes}} |
|{{yes}} |
||
| <span lang="en" dir="ltr" class="mw-content-ltr">A collection of Python scripts and a powerful library for bot writing.</span> <span lang="en" dir="ltr" class="mw-content-ltr">([//pypi.python.org/pypi/pywikibot/ PyPI]) ([[git:pywikibot/core|Git repository]]) ({{irc|pywikibot}}) ([[Special:MyLanguage/API:Client code/Evaluations/Pywikibot|Evaluation]]).</span> |
| <span lang="en" dir="ltr" class="mw-content-ltr">A collection of Python scripts and a powerful library for bot writing.</span> <span lang="en" dir="ltr" class="mw-content-ltr">([//pypi.python.org/pypi/pywikibot/ PyPI]) ([[git:pywikibot/core|Git repository]]) ({{irc|pywikibot}}) ([[Special:MyLanguage/API:Client code/Evaluations/Pywikibot|Evaluation]]).</span> |
||
|11. |
|11.6.0 |
||
|{{date|2026| |
|{{date|2026|07|22}} |
||
|{{date|2026| |
|{{date|2026|08}} |
||
|- |
|- |
||
|[https://github.com/fastily/pwiki pwiki] [https://fastily.github.io/pwiki/ docs] |
|[https://github.com/fastily/pwiki pwiki] [https://fastily.github.io/pwiki/ docs] |
||
Latest revision as of 21:12, 10 August 2026
| 이 문서는 MediaWiki Action API 문서의 부분입니다. |
클라이언트 라이브러리에는 개발자가 일반적인 기본 작업을 지원하는 데 사용할 수있는 코드가 포함되어 있으므로 프로젝트가 API와 상호 작용할 때 코드를 처음부터 작성할 필요가 없습니다.
This page contains a set of lists, by programming language, of several recommended client libraries that can be used with the MediaWiki Action API. 권장사항은 API:Client_code/Gold_standard을 사용한 평가에 따르고 있습니다.
API 클라이언트 라이브러리
Dates and version numbers were updated on 2019-06-19.
Awk
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| BotWikiAwk | Framework and libraries for creating bots. Includes example bots. | |||
| Wikiget | Awk CLI program to interface with MediaWiki API for read/write including OAuth. |
Bash
| Name | Description | Last release | Release date | Last activity |
|---|---|---|---|---|
| bash-mediawiki | An example with Curl that allows easy editing/uploading of a wiki through the MediaWiki API. |
C++
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| libmediawiki | A library that allows easy editing of a wiki through the MediaWiki API. |
Common Lisp
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| cl-mediawiki | A Common Lisp wrapper for the MediaWiki API. |
Elixir
| Name | Description | Last release | Release Date | Last activity |
|---|---|---|---|---|
| mediawiki_client_ex | Adapter for the Action API, EventStreams, and ORES. (Documentation) | 0.5.3 |
Go
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| go-mediawiki | Go wrapper for the MediaWiki API. | v0.1 | ||
| go-mwclient | Wrapper for the MediaWiki API (supports maxlag, query continuations, OAuth). | v1.2.0 |
Haskell
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| haskell mediawiki | A complete Haskell binding to the MediaWiki API letting you programmatically access (read and write) MediaWiki content. | 0.2.6 |
Java
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| JavaWikiBotFramework | A library to retrieve data from and maintain MediaWiki-based wikis such as Wikipedia. | 4.0.0 | ||
| jwiki | A library for effortlessly interacting with Wikipedia/MediaWiki. | 1.8.0 | ||
| Bliki Engine | Can convert wikicode to HTML, DocBook or PDF. Has a helper library for API calls. |
More Java libraries available at API:Client_code/All#Java.
JavaScript
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| mwn (Node.js) | Mwn is a modern and feature-rich API client with support for both JavaScript and TypeScript. Has classes for conveniently working with page titles and parsing wikitext. Supports both OAuth and BotPasswords. | v3.0.1 | ||
| mwbot-ts (Node.js) | mwbot-ts is a TypeScript-compatible library featuring a flexible core class and an offline wikitext parser that handles even edge-case wiki markup. With the core class designed to be subclassed, it's suitable for implementing application-specific logic and methods. Supports both OAuth and BotPasswords. | v1.2.1 | ||
| mwbot (Node.js) | MWBot uses the Promise pattern and other ES6 methodologies, optimised for creating bots that make edits. Works with any MediaWiki site. | v2.1.3 | ||
| nodemw (Node.js) | A generic MediaWiki API client for Node.js. | v0.24.1 | ||
| wikiapi (Node.js) | A simple way to access MediaWiki API via JavaScript with simple wikitext parser. | v1.20.0 | ||
| mediawiki.api (browser) | Generic MediaWiki API client for client-side JavaScript. It ships with MediaWiki core as a ResourceLoader module bundle. It abstracts some high-level concepts and provides a generic client for other queries. | Maintained as part of MediaWiki. | ||
In-wiki JavaScript clients:
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| mwapilib2 | A layer overtop of the requests. Make JS gadgets easier. | |||
| JsMwApi | A convenience wrapper around raw requests, with some helpers for editing and parsing. |
More JavaScript libraries available at API:Client_code/All#JavaScript.
Lua
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| dtMediaWiki | Extension for Darktable. Makes query (tokens, userinfo), clientlogin, upload, and logout calls. It handles HTTPS requests and cookies and can be used to upload files to Wikimedia Commons. |
MATLAB
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| MatWiki | A preliminary (as of Feb 2019) MATLAB R2016b(9.1.x) client supporting just bot-logins & semantic #ask queries. | v1.0.0 |
.NET
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| WikiFunctions | Library with classes for editing and getting lists of pages via the API, used by AutoWikiBrowser. | 6.4.0.0 | ||
| LinqToWiki | Strongly typed library for accessing most of MediaWiki API, with support for autocompletion. | 1.5.0 | ||
| WikiClientLibrary | A .NET Standard & asynchronous MediaWiki API client library for wiki sites. The library also supports Flow/Wikibase/Wikia-specific API. | v0.7.5 |
More .NET libraries available at API:Client code/All#.NET.
OCaml
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| ocaml-mediawiki | A high-level binding for the MediaWiki API written in OCaml. |
Perl
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| MediaWiki::Bot | A higher-level Perl module with read and write functions. Easily extensible with plugins, for example to provide administrator functions (Evaluation). | 5.006003 | ||
| MediaWiki::API | A Perl module for interfacing with the MediaWiki API with file upload/download and editing support. (Debian package). (Evaluation). | 0.41 |
PHP
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| mediawiki-api-base | Library for basic MediaWiki api use. | 2.4.0 | ||
| mediawiki-api | A simple library for interacting with the MediaWiki API. | 0.7.2 | ||
| wikibase-api | Library for querying Wikidata. | 0.7 |
More PHP libraries available at API:Client code/All#PHP.
Sometimes people try to use these kind of libraries to access a MediaWiki installation on the same server. This is often unnecessary because MediaWiki itself is written in PHP, especially when the only purpose of the script is interacting with MediaWiki. With require WebStart.php (MW_INSTALL_PATH may need to be set beforehand, see Manual:$IP), a script gets access to MediaWiki components and consequently it can call the API internally or use other MediaWiki classes and functions directly, which greatly reduces server load. |
Python
| 이름 | Type hints | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 | ||
|---|---|---|---|---|---|---|---|
|
예 | A collection of Python scripts and a powerful library for bot writing. (PyPI) (Git repository) (#pywikibot connect) (Evaluation). | 11.6.0 | ||||
| pwiki docs | 예 | A Python library for developing bots/tools, focused on ease of use and simplicity. | 1.1.1 | ||||
| mwclient docs | 아니요 | Python library that makes most of the API functions accessible. (PyPI) (Evaluation). | 0.10.1 | ||||
| wiki-scripts docs | 아니요 | Framework for writing bots, maintenance scripts or performing data analysis. | 1.2 |
Simple Python wrappers for no-abstraction interfaces to the MediaWiki API and basic session handling:
| 이름 | Type hints | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|---|
| pywikiapi | 아니요 | A minimalistic library that handles some of the core MediaWiki API complexities like handling continuations, login, errors, and warnings, but does not impose any additional abstraction layers. | 1.3.2 | ||
| Wikipedia docs | 아니요 | A Python library that makes it easy to access and parse data from Wikipedia. | v1.1 | ||
| wikitools | 아니요 | Provides several layers of abstraction around the API. Doesn't support Python 3. | 0.41 |
More Python libraries available at API:Client code/All#Python.
R
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| WikipediR | A wrapper for the MediaWiki API, aimed particularly at the Wikimedia 'production' wikis, such as Wikipedia. Can be used to retrieve page text, information about users or the history of pages, and elements of the category tree. | 1.5.0 |
Ruby
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| MediaWiki::Butt | Stable and powerful Ruby framework for the API. (Evaluation) | 3.0.0 | ||
| wikipedia-client | Ruby framework using the API. | v1.10.0 | ||
| MediaWiki Ruby API | Ruby API client library in active development by Wikimedia Foundation Release Engineering. | 0.71 |
More Ruby libraries available at API:Client code/All#Ruby.
Rust
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| Wikibase RS | Rust library to talk to the Wikibase API and serialize data into Rust data structures. | 0.37 | ||
| mediawiki_rust | A MediaWiki client library in Rust. | |||
| mwbot-rs | A framework for writing bots on MediaWiki | 0.4.3 | ||
| wiki | Library for interacting with MediaWiki APIs | 0.0.3 | ||
| mediawiki_rest_api | Library for interacting with the MediaWiki REST API | 0.0.1 |
More Rust libraries available at API:Client code/All#Rust.
Scala
| 이름 | 설명 | 마지막 릴리스 | 배포 날짜 | 마지막 활동 |
|---|---|---|---|---|
| scalawiki | MediaWiki client in Scala. | 0.6.3 | ||
| dbpedia extraction framework | Data extraction framework for DBpedia with support Wiki source retrieved via MediaWiki API. | DBpedia_2015-10 | ||
| scmw | Simple MediaWiki API wrapper for needs of Commonist image upload tool. | v-0.140.0 |
같이 보기
- API:Client code/All — All known API client libraries.
- API:Client code/Gold standard — Describes best practices for action API client libraries.
- Collection of bot libraries on Wikipedia, several of these use the API.
- mediawiki-api-demos — Demo apps and code snippets in Python and JavaScript demonstrating how to use various modules of the MediaWiki Action API.