Wikimedia plugin for Sopel
Project description
Sopel plugin for interacting with Wikimedia projects like Wikipedia and Wiktionary
Looking up Wikipedia articles, either using the .wp command or an in-message URL:
<SnoopJ> .wp ichiju sansai
<terribot> [wikipedia] Ichijū-sansai | "Ichijū-sansai (Japanese: 一汁三菜)
'one soup, three dishes' is a traditional Japanese dining format
of a bowl of rice, soup, a main dish, and two side dishes. It is
a key component of kaiseki cuisine and reflects the aesthetic and
nutritional principles of Japanese meals." |
https://en.wikipedia.org/wiki/Ichij%C5%AB-sansai
<SnoopJ> https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes
<terribot> [wikipedia] List of ISO 639 language codes | "ISO 639 is a
standardized nomenclature used to classify languages. Each
language is assigned a two-letter (set 1) and three-letter
lowercase abbreviation (sets 2–5). Part 1 of the standard, ISO
639-1 defines the two-letter codes, and Part 3 (2007), ISO 639-3,
defines the three-letter codes, aiming to cover all known natural
languages, largely superseding the ISO 639-2 three-letter code
standard. "
Looking up Wiktionary definitions and etymologies using the .wt and .ety commands:
<SnoopJ> .wt schnozz
<terribot> [wiktionary] schnozz — noun: 1. (slang) Nose
<SnoopJ> .ety windfall
<terribot> [wiktionary] windfall: From Middle English windfal, wyndfall,
equivalent to wind + fall. Cognate with Middle High German
wintval, wintfal, German Windfall.
Install
The recommended way to install this plugin is to use pip:
$ pip install sopel-wikimedia
Note that this plugin requires Python 3.8+ and Sopel 7.1+. It won’t work on Python versions that are not supported by the version of Sopel you are using.
Configure
sopel-wikimedia can be configured by invoking Sopel’s interactive wizard:
$ sopel-plugins configure wikipedia Configure wikipedia.py - Sopel Wikipedia Plugin Enter the default language to find articles from. [en]
The [bot database](https://sopel.chat/docs/package/db) also supports the per-nick (for PMs) and per-channel value wikipedia_lang.
Changelog
1.0.0
Initial release. Replaces wikipedia and wiktionary plugins from sopel core.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sopel_wikimedia-1.0.0.tar.gz.
File metadata
- Download URL: sopel_wikimedia-1.0.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4acddb5e4e209f58edaec4288654a7f30a78b78530cfecf210ff843fbe46cb60
|
|
| MD5 |
c8fd010cb4c435126b8b27f536b6169a
|
|
| BLAKE2b-256 |
ba24cb3ff89eafac24d917d3ba830cf1d48de0c23d300ea590b2d934a6377aaf
|
Provenance
The following attestation bundles were made for sopel_wikimedia-1.0.0.tar.gz:
Publisher:
pypi.yml on sopel-irc/sopel-wikimedia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_wikimedia-1.0.0.tar.gz -
Subject digest:
4acddb5e4e209f58edaec4288654a7f30a78b78530cfecf210ff843fbe46cb60 - Sigstore transparency entry: 512927736
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-wikimedia@0890deb0b161dfe3ac9f01151c0c41e6815ea922 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0890deb0b161dfe3ac9f01151c0c41e6815ea922 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sopel_wikimedia-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sopel_wikimedia-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b4e43e4e20131e486ef61d4fbf7ff862ba288a05845bfbe6d1bef542260d48e
|
|
| MD5 |
a054564695b9ff9b0c2ee20c5f3f37a6
|
|
| BLAKE2b-256 |
fcd922077b1b227f3171f5d39e03d044b2ac90eed40984c184e7b002b4ec6b01
|
Provenance
The following attestation bundles were made for sopel_wikimedia-1.0.0-py3-none-any.whl:
Publisher:
pypi.yml on sopel-irc/sopel-wikimedia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_wikimedia-1.0.0-py3-none-any.whl -
Subject digest:
5b4e43e4e20131e486ef61d4fbf7ff862ba288a05845bfbe6d1bef542260d48e - Sigstore transparency entry: 512927743
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-wikimedia@0890deb0b161dfe3ac9f01151c0c41e6815ea922 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0890deb0b161dfe3ac9f01151c0c41e6815ea922 -
Trigger Event:
release
-
Statement type: