Skip to main content

wik is used to get information about anything on the shell using Wikipedia

Project description

WIK

WIK is a command-line tool to view Wikipedia pages from your terminal. It also lets you search Wikipedia articles with a single query.

Requirements

  • Python3
  • beautifulsoup4

Installation

Linux/macOS

From source

python3 -m pip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
python3 -m pip install .

PyPI

python3 -m pip install wik

Windows

From source

python -m pip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
python -m pip install .

Note: Windows users should add Python to their environment variables.

PyPI

python -m pip install wik

or

pip install wik

Options

Using WIK is simple.

usage: wik [-h] [-s SEARCH] [-i INFO] [-q QUICK] [-l LANG] [-x] [--no-cache]
           [--clear-cache]

optional arguments:
  -h, --help            show this help message and exit
  -s SEARCH, --search SEARCH
                        Search any topic
  -i INFO, --info INFO  Get info on any topic
  -q QUICK, --quick QUICK
                        Get the summary on any topic
  -l LANG, --lang LANG  Get info in your native language (default english)
  -x, --rand            Get random Wikipedia article
  --no-cache            Disable on-disk cache for this run
  --clear-cache         Clear cached pages and exit

Example

$ wik -i Linux

example output

Cache

WIK stores pages on disk so repeated queries are instant and can work offline. You can disable caching per run or clear the cache:

wik --no-cache -i Linux
wik --clear-cache

Contribution

You can contribute by opening an issue or making a pull request. If you have ideas or feedback, you can contact me.

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

wik-2.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

wik-2.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file wik-2.0.1.tar.gz.

File metadata

  • Download URL: wik-2.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wik-2.0.1.tar.gz
Algorithm Hash digest
SHA256 a12141d06967a7c21dee62fdd6d6086e4cb3f14ea18fae4aa294e39dfd5f23e2
MD5 c7d2d0b4968d7a0e597a79ea018e6602
BLAKE2b-256 ee934a221efc5995f8ee24731a145277de0beb68477f30cdf76954355cd6c62f

See more details on using hashes here.

File details

Details for the file wik-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: wik-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wik-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22262b3e32c83d2f563ff9a4fbf7546984c00cf04974ab4b9ee38e0fb9a30cf5
MD5 0bf9d455bf818e480d050a32718cfeaf
BLAKE2b-256 d4f78da879b09dfd116e4e4dfb5f46c07febf19d48c625401557dad718906e32

See more details on using hashes here.

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