Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel_wikimedia-1.0.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_wikimedia-1.0.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for sopel_wikimedia-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4acddb5e4e209f58edaec4288654a7f30a78b78530cfecf210ff843fbe46cb60
MD5 c8fd010cb4c435126b8b27f536b6169a
BLAKE2b-256 ba24cb3ff89eafac24d917d3ba830cf1d48de0c23d300ea590b2d934a6377aaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_wikimedia-1.0.0.tar.gz:

Publisher: pypi.yml on sopel-irc/sopel-wikimedia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sopel_wikimedia-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_wikimedia-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b4e43e4e20131e486ef61d4fbf7ff862ba288a05845bfbe6d1bef542260d48e
MD5 a054564695b9ff9b0c2ee20c5f3f37a6
BLAKE2b-256 fcd922077b1b227f3171f5d39e03d044b2ac90eed40984c184e7b002b4ec6b01

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page