17 releases

new 0.6.2 Jun 6, 2024
0.5.0 Jul 12, 2019
0.4.0 Jun 28, 2019
0.3.2 Mar 27, 2019
0.2.0 Mar 26, 2018

#2 in #mediawiki

Download history 4/week @ 2024-02-22 6/week @ 2024-02-29 34/week @ 2024-03-28 18/week @ 2024-04-04

870 downloads per month
Used in 3 crates

GPL-2.0+

9.5MB
13K SLoC

TypeScript 5.5K SLoC // 0.2% comments Rust 5K SLoC // 0.0% comments Python 1.5K SLoC // 0.2% comments HCL 292 SLoC // 0.0% comments Shell 165 SLoC // 0.2% comments JavaScript 157 SLoC // 0.0% comments Java 145 SLoC // 0.1% comments Go 143 SLoC // 0.2% comments C++ 128 SLoC // 0.3% comments Kotlin 100 SLoC // 0.1% comments PowerShell 88 SLoC // 0.1% comments Batch 71 SLoC SQL 31 SLoC C# 30 SLoC // 0.3% comments Visual Studio Solution 28 SLoC Ruby 25 SLoC Swift 18 SLoC // 0.1% comments Open Policy Agent 16 SLoC Jinja2 15 SLoC Lua 13 SLoC Dart 13 SLoC PHP 8 SLoC CUDA 7 SLoC VB6 5 SLoC Bazel 5 SLoC Scala 4 SLoC Haml 3 SLoC Jupyter Notebooks 3 SLoC // 0.5% comments Perl 2 SLoC // 0.5% comments

Contains (Zip file, 8.5MB) ticket-monster.war, (JAR file, 62KB) gradle-wrapper.jar, (Zip file, 8KB) jboss-helloworld.war

Wikibase RS

A tool to communicate with Wikibase (the most famous instance being Wikidata). Currently only reading the JSON-API is possible. Parsing the JSON-dumps and editing Wikibase are on the roadmap.

Installation

cargo install wikibase

Usage

See documentation linked from crates.io

Contributing

This tool and the community around it are part of the Wikimedia movement. Everybody is welcome to contribute. Plase refer to this guide https://www.mediawiki.org/wiki/Code_of_Conduct before contributing.

Testing

Tests can be run locally cargo test or with a reproducible environment with e.g. Docker:

docker run -it -v ${PWD}:/var/wikibase -w /var/wikibase rust bash

Licence

GNU General Public License, Version 2 or later (GPL-2.0+)

Repository / Issue tracker

https://gitlab.com/tobias47n9e/wikibase_rs

Crates.io

https://crates.io/crates/wikibase

Free software using Wikibase RS

Custom Wikibase instance

By default Wikibase RS will use Wikidata. To use a different Wikibase instance you have to change the default configuration:

let configuration = wikibase::Configuration::new("My-Fancy-App/1.0").unwrap();
configuration.set_api_url("https://www.my-wikibase-instance.rs/w/api.php");

Dedication

Dedicated to Krzysztof Machocki. We will remember Krzysztof with his contagious enthusiasm and dedication, for his vast encyclopedic knowledge and wit, for his faith in how Wikipedia makes the world better, both online and offline. We lose him but let us not lose the faith he shared with the world. The memory of him remains and his Wikipedia legacy will continue to help the world.

https://meta.wikimedia.org/wiki/CEE/Newsletter/January_2018/Contents/From_the_team

Dependencies

~24–37MB
~651K SLoC