python-arch-wiki
A terminal interface for browsing the Arch Linux Wiki, with an interactive table of contents and article search.
Installation
The program can be run directly with uvx; install it in a virtual environment if you want access to the source code.
To install latest version from GitHub with source 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"
Then the source code can be found in ~/python_arch_wiki/venv/src/.
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}"
Usage
Run:
uvx python-arch-wiki [-l] [-v] [article name]
Or if installed:
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.1
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 | Actions |
|---|---|---|---|---|
| python_arch_wiki-0.1.1.tar.gz | 22.3 kB | Without provenance | Details for python_arch_wiki-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_arch_wiki-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for python_arch_wiki-0.1.1-py3-none-any.whl |
Total release size: 45.4 kB
Release files / python_arch_wiki-0.1.1.tar.gz
| Download URL | python_arch_wiki-0.1.1.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d39cd622865746585856adf70e6bb37b87aabcf6c959fe557a76dc69f4756a45
|
|
BLAKE2b-256 checksum How to use checksums |
fc52cb8d11c33b8df1d4c229aded12fa43c561c3bb8ce21a53d6dcea43919e15
|
| 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.1-py3-none-any.whl
| Download URL | python_arch_wiki-0.1.1-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ebd908512ca6725adbf8b2947fcd8dd5d866068c680b6059ec2fb408a759331
|
|
BLAKE2b-256 checksum How to use checksums |
aa020734d51b0c6e13418ee9f738ba13b5956ff43198f0a3dd6dda48833d4b7e
|
| 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}
|
Security for python-arch-wiki 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.