Skip to main content

wiCLIpedia

License: AGPL-3.0-or-later Version Supported Versions CI Checked with mypy Code Style: Black Linting: Ruff

This is a minimalist command line interface (CLI) program to fetch and display data from Wikipedia.

In an era where Artificial Intelligence answers everything and large language models shape our knowledge, this program is a small tribute to Wikipedia, the silent, human-curated backbone that feeds those very models. Never forget the source.


Demo


Features

  • Fetches and displays article summaries and table of contents
  • Navigates article sections interactively
  • Opens a section's main article when a dedicated page exists
  • Jumps to related pages linked within the article sections
  • Handles redirects and disambiguation pages automatically
  • Supports multiple Wikipedia languages
  • Caches responses locally to minimize API calls
  • ANSI colors and styles for enhanced readability (can be disabled)

Installation

pip install wiclipedia

Usage

wicli "Blade Runner"

If no page title is provided, the program will prompt you to enter one interactively.

You will be interactively prompted to navigate through the article summary sections.
To navigate, use the section numbers shown in the table of contents.

If the query matches a disambiguation page, you will be prompted to select the intended article from a list of options.

When a section opens with a main-article hatnote (e.g. {{Main}}, {{See also}}), you are told that a dedicated page exists: enter 0 to open it.

While reading an article, related pages found in list items (e.g. a "See also" section) are not shown automatically. If any are found, enter j to display them, then use j1, j2, etc. to jump directly to one of them.

By default, it fetches the English Wikipedia. To specify a different language, use the -l or --lang option:

wicli "La classe operaia va in paradiso" --lang it

Available commands during navigation:

  • :b — Go back to the start prompt
  • :q — Exit the program
  • :m — Show the table of contents menu (only available when navigating sections)
  • 0 — Open the main article of the current section
  • j — Show the related pages found in the current section
  • j1, j2, … — Jump to a related page (after entering j)

At the start prompt, you can also use:

  • :show-w — Show the warranty disclaimer
  • :show-c — Show the redistribution conditions

Options

Option Description
page Wikipedia page title (optional, prompted if omitted)
-l, --lang Language code (default: en)
--no-cache Disable local cache for the session
--purge Purge local cache and exit

Cache

Responses are cached locally for 72 hours to reduce API calls.
The cache is stored in ~/.cache/wiclipedia/.
Use --no-cache to bypass it for a session, or --purge to clear it entirely.

Display

ANSI colors and styles are enabled by default.
Set the NO_COLOR environment variable to disable them (see no-color.org).

API Respect and Fair Use Disclaimer

wiCLIpedia interfaces directly with the official Wikipedia PHP/MediaWiki APIs without using any third-party scraping libraries.
Please use this program responsibly. If you need to perform massive automated data extraction, use official database dumps instead of hammering the live API.

wiCLIpedia caches responses locally for 72 hours by default to minimize API load. Check the Cache section for details.

More information about the MediaWiki API and usage guidelines:

License

This program is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0+).
See the LICENSE file for details.

Changelog

See CHANGES.md for release notes.

Metadata

Release files for wiclipedia 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wiclipedia 0.4.0
File Size Uploaded Provenance
wiclipedia-0.4.0.tar.gz 38.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wiclipedia 0.4.0
File Interpreter ABI Platform
wiclipedia-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 82.4 kB

Release files / wiclipedia-0.4.0.tar.gz

Download URL wiclipedia-0.4.0.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
81bbcf03d04165a8bcc5a794db7216b4230c020dbe39144808a06451cab8613c
BLAKE2b-256 checksum
How to use checksums
3b6ac782d3355c688c3ae30ac1b6f7cb0f057f8bfa983cd8dbefbfe92fbf4605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / wiclipedia-0.4.0-py3-none-any.whl

Download URL wiclipedia-0.4.0-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
382408cb985e246f17b51b1d937786d911a2771fa82dd3b7f76d22c2aa0851f1
BLAKE2b-256 checksum
How to use checksums
bd5f3fe5d9d6b7cb93902ed7407a03ef88e827a76eda7edba728aa2d28816b03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for wiclipedia 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wiclipedia-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page