一个消费者到终端
castero的Python项目详细描述
卡斯特罗
Castero是终端的TUI播客客户端。
安装
使用pip从PyPi安装:
$ pip install castero
升级:
$ pip install castero --upgrade
手动安装
警告:有时在 此页上的文档已更新。
$ git clone https://github.com/xgi/castero
$ cd castero
$ sudo python setup.py install
依赖关系
运行castero需要以下外部依赖项:
- python>;=3.5(检查
python --version
的输出) - sqlite3
- one以下媒体播放器:
- VLC=2.2.3
- (mpv和libmpv)>;=0.14.0
用法
安装Castero后,只需使用以下命令即可运行它:
$ castero
“帮助”菜单提供控件列表,可以按 h。或者,请参见下面的列表:
Commands h - show this help screen q - exit the client a - add a feed d - delete the selected feed r - reload/refresh feeds s - save episode for offline playback arrows - navigate menus page up/down - scroll menus enter - play selected feed/episode space - add selected feed/episode to queue c - clear the queue n - go to the next episode in the queue i - invert the order of the menu p or k - pause/play the current episode f or l - seek forward b or j - seek backward ] - increase playback speed [ - decrease playback speed 1-3 - change between client layouts
配置
配置文件位于{HOME}/.config/castero/castero.conf
在客户端至少运行一次之后。
请看default castero.conf 获取可用设置的列表。
用户数据,包括下载的剧集和包含提要的数据库
信息,位于{HOME}/.local/share/castero/
。这些文件不是
打算手动修改。删除数据库只会导致
下次运行客户机时,castero将其替换为空的。
测试
这个项目使用pytest进行测试。运行测试,运行 项目根目录中的以下命令:
$ python -m pytest tests
您还可以为单个单元运行测试,即:
$ python -m pytest tests/test_feed.py