wiCLIpedia
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.
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wiclipedia-0.3.0.tar.gz | 35.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wiclipedia-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.5 kB
Release files / wiclipedia-0.3.0.tar.gz
| Download URL | wiclipedia-0.3.0.tar.gz |
|---|---|
| Size | 35.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35f7e014ea6bdb345f7cf9d68a9cafeaac56072ad8ab68ba06c0b9f53876c804
|
|
BLAKE2b-256 checksum How to use checksums |
cdc159f9e6d8bb97518cd3c9aa4585c45f9447d1b3f916c07bf919962e42e4b7
|
| 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 logRelease files / wiclipedia-0.3.0-py3-none-any.whl
| Download URL | wiclipedia-0.3.0-py3-none-any.whl |
|---|---|
| Size | 41.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40fb8c16afd21af6320333fef1d41f5d927a72708bb032ad6d2c0febb5c28d6d
|
|
BLAKE2b-256 checksum How to use checksums |
87d3791206afdd089a1194f0b98a7c324e19cb2f214ac4b1d05c46be92ebd978
|
| 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 logSecurity for wiclipedia 0.3.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.
Attestation for wiclipedia-0.3.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 Sep 5, 2026.
Transparency logA 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.