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

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.

Download files

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

Source Distribution

wiclipedia-0.2.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

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

wiclipedia-0.2.1-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file wiclipedia-0.2.1.tar.gz.

File metadata

  • Download URL: wiclipedia-0.2.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for wiclipedia-0.2.1.tar.gz
Algorithm Hash digest
SHA256 883fbb1030e8241adc1b6d318abf50fb1bb00d5995a9d179f5dc074e00ec0dda
MD5 af548e1ba17346e07e497ebef58f2a20
BLAKE2b-256 ab8b7a65cce6ebeb3eb23e24ae7cd436a13ba4c0e6c756f7af0e3f13187038e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiclipedia-0.2.1.tar.gz:

Publisher: publish.yml on seto/wiCLIpedia

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

File details

Details for the file wiclipedia-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: wiclipedia-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for wiclipedia-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d367de8ee9d5d50ccbb5526053c663e915d421fb4bedb0b0479f4390410bb3
MD5 5e996a38f3620a9b88944a52f70a2495
BLAKE2b-256 83823e56a52831b09998d198bc4b1fc0bf6d54bc38abdc75e9349b71783396e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for wiclipedia-0.2.1-py3-none-any.whl:

Publisher: publish.yml on seto/wiCLIpedia

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

Release history Release notifications | RSS feed

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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