python-arch-wiki
A terminal interface for browsing the Arch Linux Wiki, with an interactive table of contents and article search.
Installation
To install in the virtual environment in the directory python_arch_wiki and create a link with a name wiki (assuming ~/.local/bin is in the PATH):
mkdir python_arch_wiki
cd python_arch_wiki
python3 -m venv venv
venv/bin/python -m pip install \
-e 'python-arch-wiki @ git+https://github.com/termctrlseq/python-arch-wiki.git'
ln -s "$PWD/venv/bin/python-arch-wiki" "$HOME/.local/bin/wiki"
To add ~/.local/bin to PATH put this in your ~/.bashrc
# add ~/.local/bin to PATH if not in it
[[ ":${PATH}:" != *:"${HOME}/.local/bin":* ]] \
&& export PATH="${HOME}/.local/bin:${PATH}"
Then the source code can be found in ~/python_arch_wiki/venv/src/.
Usage
wiki [-l] [-v] [article name]
Options
-l, --link-url Show URLs in links
-v, --verbose Enable debug logging
Examples
Open the table of contents:
wiki
From there, press / to search the Arch Wiki. The search uses the Arch Wiki's own search engine, and the results are presented in a navigable menu. For convenience, this can be preferable to specifying a longer query on the command line:
/install
For short, specific searches, giving the article name on the command line is often more convenient:
wiki zram
Controls
| Key | Action |
|---|---|
↑ / k / Ctrl-P / Shift-Tab |
Previous |
↓ / j / Ctrl-N / Tab |
Next |
H |
First visible item |
M |
Middle visible item |
L |
Last visible item |
Enter |
Open |
Space / l |
Fold/unfold |
h / u / Esc |
Go up |
/ / ? |
Search |
q / Ctrl-D |
Quit |
Mouse input is also supported:
| Button | Action |
|---|---|
| Left click | select |
| Double left click | open |
| Right click | fold/unfold |
| Wheel | navigate |
Articles are rendered in the terminal and paged with less.
Requirements
- Python 3.13+
- A terminal with
cursessupport - Internet connection
Metadata
Release files for python-arch-wiki 0.1.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 | |
|---|---|---|---|
| python_arch_wiki-0.1.0.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_arch_wiki-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.2 kB
Release files / python_arch_wiki-0.1.0.tar.gz
| Download URL | python_arch_wiki-0.1.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a8275dae2cab05458db9672362b436334b45db7f2579e0d81adcfc95a3a71b7
|
|
BLAKE2b-256 checksum How to use checksums |
1c9f93323a0bd5050ed838c8338d800cf9ec3f94477a4be4b99d8a34e59abd78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / python_arch_wiki-0.1.0-py3-none-any.whl
| Download URL | python_arch_wiki-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a02f7d937f96c7ef9d5274fc74e863cb904c68c810e09d8be8311bfa8dd13f6b
|
|
BLAKE2b-256 checksum How to use checksums |
1cea15fb6d916adb3a95169fa7061cc07bf02e5dd9c5aefe61fea3fcdb65a619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|