Skip to main content

LINUX DO 社区命令行 TUI 工具

Project description

linuxdo-cli

Python License

LINUX DO 社区的命令行 TUI 工具,在终端内浏览话题、查看帖子详情。

安装

# 从 PyPI 安装
pip install linuxdo-cli

# 从源码安装(开发模式)
pip install -e .

使用

linuxdo          # 启动 TUI 浏览器
linuxdo login    # 登录
linuxdo me       # 查看当前登录用户
linuxdo --version

快捷键

全局

说明
? 打开 / 关闭帮助
t 切换主题
d 切换紧凑 / 标准布局
Ctrl+Q 退出

话题列表

说明
Tab / Shift+Tab 切换分类(最新 / 热门 / 分类)
j / 光标下移
k / 光标上移
g / Home 跳到顶部
G / End 跳到底部
Enter 进入话题详情
o 在浏览器中打开当前话题
n 立即加载下一页
r 刷新

列表接近底部时自动追加下一页(无限滚动)。

话题详情

说明
Esc 返回列表
j / 向下滚动
k / 向上滚动
PageDown / PageUp 翻页
g / Home 滚动到顶部
G / End 滚动到底部

凭据配置

程序通过内置 _credentials.py 读取 OAuth 凭据(此文件不纳入版本控制)。 也可通过环境变量覆盖:

export LINUXDO_CLIENT_ID=your-client-id
export LINUXDO_CLIENT_SECRET=your-client-secret

如需自行部署,复制 src/linuxdo_cli/_credentials.py.example_credentials.py 并填入真实值。

配置

配置文件:~/.config/linuxdo-cli/config.json,支持环境变量覆盖(前缀 LINUXDO_)。

变量 说明
LINUXDO_CLIENT_ID OAuth Client ID
LINUXDO_CLIENT_SECRET OAuth Client Secret
LINUXDO_BASE_URL 论坛地址(默认 https://linux.do
LINUXDO_ACCESS_TOKEN 访问令牌(登录后自动写入)

依赖

License

MIT

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

linuxdo_cli-0.1.0.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

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

linuxdo_cli-0.1.0-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file linuxdo_cli-0.1.0.tar.gz.

File metadata

  • Download URL: linuxdo_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for linuxdo_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b5664bd0d497378b1179f443174adb79fe8fbc352e88a0a14730e0bf441f0ab
MD5 62b8b577c1ee849e2eaf5299580bd6f0
BLAKE2b-256 72b78fd735a79fd33718e48ad381bdd846ed2ca0be9ad2d4f0785ca4bdfa1761

See more details on using hashes here.

Provenance

The following attestation bundles were made for linuxdo_cli-0.1.0.tar.gz:

Publisher: publish.yml on Sayhi-bzb/linuxdo-cli

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

File details

Details for the file linuxdo_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: linuxdo_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for linuxdo_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71c94fe42949b05cd714047fcb950c3dec4d8c5d75e386091ee7c645886c77ab
MD5 f61fdc6206fc85967ccdd8b447a6eab0
BLAKE2b-256 1e58bd41b7b8512eb33bac460132d2e0b3e0777505039b72fb309dfb00782eb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for linuxdo_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Sayhi-bzb/linuxdo-cli

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

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