Skip to main content

wiCLIpedia

License: AGPL-3.0-or-later Version Supported Versions Tests Code Style: Black

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
  • 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.

While reading an article, related pages found in list items (e.g. a "See also" see) are listed at the end of each section. 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)

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.3.1

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.3.1
File Size Uploaded Provenance
wiclipedia-0.3.1.tar.gz 35.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 76.9 kB

Release files / wiclipedia-0.3.1.tar.gz

Download URL wiclipedia-0.3.1.tar.gz
Size 35.4 kB
Tags Source
SHA-256 checksum
How to use checksums
180909213dcc039bcf753bb19369709e694068f5754f230451f14ce4629032e3
BLAKE2b-256 checksum
How to use checksums
b885ea8680f0d1ba2320556d1758e9ccdfb494dcd9feca2d745c0562013da777
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 Sep 5, 2026.

Transparency log

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

Download URL wiclipedia-0.3.1-py3-none-any.whl
Size 41.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0518497bf77042e3cea7e01bcc74af6954d87b5c46301172d6693a6c803eb0e9
BLAKE2b-256 checksum
How to use checksums
d3444be89d8935a9885863565571d7a4d2ae25b9ec705a4c8ac1a2d2a4766dd8
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 Sep 5, 2026.

Transparency log

Security for wiclipedia 0.3.1

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.3.1.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 Sep 5, 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