skip to navigation
skip to content

pyhn 0.2.3

Hacker News in your terminal

Latest Version: 0.3.4

Hacker news in your terminal.

Don’t be worry about your IP. Pyhn is not aggresive, it uses cache.


Using pip:

pip install pyhn

Run it:


Arch Linux

pyhn is available in the AUR.


Use help for all key bindings:

  • h, ?: Print help popup


By default, configuration file is in your $HOME/.pyhn/config. You can set key bindings, colors and more.

This is an example file:

open_story_link = S,enter
show_story_link = s
open_comments_link = C
show_comments_link = c
open_user_link = U
show_user_link = u
up = j
down = k
page_up = ctrl d
page_down = ctrl u
first_story = g
last_story = G
refresh = r,R
reload_config = ctrl r,ctrl R

cache = /home/socketubs/.pyhn/cache
cache_age = 5
browser_cmd = __default__

body = default||standout
focus = black|light green|underline
footer = black|light gray
footer-error = dark red,bold|light gray
header = dark gray,bold|white|
title = dark red,bold|light gray
help = black,bold|light gray


  • cache_age is a minute indicator which say to CacheManager when cache is outdated
  • browser_cmd is a bash command which will be use to open links


browser_cmd = lynx __url__
browser_cmd = __default__
browser_cmd = w3m __url__
browser_cmd = echo "[INFO] Open with w3m: __url__" >> /tmp/pyhn.log && w3m __url__

Key bindings

You can set different key bindings for same action with a comma separator. Take a look at urwid input manual.


Colors options are designed like that: foreground|background|monochrome.


  • colors: ‘default’ (use the terminal’s default foreground), ‘black’, ‘dark red’, ‘dark green’, ‘brown’, ‘dark blue’, ‘dark magenta’, ‘dark cyan’, ‘light gray’, ‘dark gray’, ‘light red’, ‘light green’, ‘yellow’, ‘light blue’, ‘light magenta’, ‘light cyan’, ‘white’
  • settings: ‘bold’, ‘underline’, ‘blink’, ‘standout’


  • colors: ‘default’ (use the terminal’s default background), ‘black’, ‘dark red’, ‘dark green’, ‘brown’, ‘dark blue’, ‘dark magenta’, ‘dark cyan’, ‘light gray’


  • settings : ‘bold’, ‘underline’, ‘blink’, ‘standout’

For more informations you can take a loot at urwid manual.


License is AGPL3. See LICENSE.

File Type Py Version Uploaded on Size
pyhn-0.2.3.tar.gz (md5) Source 2013-11-18 12KB
  • Downloads (All Versions):
  • 29 downloads in the last day
  • 374 downloads in the last week
  • 2021 downloads in the last month