oshit


Nameoshit JSON
Version 0.11.1 PyPI version JSON
download
home_pagehttps://github.com/davep/oshit
SummaryA terminal-based HackerNews reader
upload_time2024-03-10 10:22:37
maintainerDave Pearson
docs_urlNone
authorDave Pearson
requires_python<3.13,>=3.10
licenseLicense :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
keywords terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # OSHit -- Get your hit of the Orange Site in the terminal

## Introduction

OSHit is a read-only terminal-based client for HackerNews. It provides the
ability to view all the top/recent items in the major categories, as well as
allowing viewing comments and user details. Where relevant, bindings are
always available to open the relevant view on HackerNews itself in your web
browser.

Please note that this client *isn't* designed to allow reading any and all
stories on HackerNews, it's about reading what's current "hot" or new,
within the categories provided by [their
API](https://github.com/HackerNews/API).

## Installing

The package can be installed using [`pipx`](https://pypa.github.io/pipx/):

```sh
$ pipx install oshit
```

Once installed run the `oshit` command.

## Main features

When run up the opening display is a list of items, the initial list being
the current top stories and jobs on HackerNews. Other lists available, via
shortcut keys or via tabs at the top of the screen, are "New", "Best",
"Ask", "Show" and "Jobs".

![The main index](https://raw.githubusercontent.com/davep/oshit/main/images/oshit-index.png)

Pressing <kbd>u</kbd> when viewing a job or a comment will open a dialog
that shows the details of the user who posted the item.

![Viewing user details](https://raw.githubusercontent.com/davep/oshit/main/images/oshit-user-dialog.png)

When viewing a story or job and pressing <kbd>c</kbd> a dialog will open
that will let you view and navigate its comments.

![Viewing comments](https://raw.githubusercontent.com/davep/oshit/main/images/oshit-comments.png)

## Tweaking

Because of the nature of the HackerNews API there might be a need for you to
dial in the ideal number of concurrent connections made to load up the data,
and also the timeout for the connections. As of the time of writing the
defaults are 50 concurrent connections and a timeout of 20 seconds.

If you run into problems look in `~/.config/oshit/configuration.json` and
change the `"maximum_concurrency"` and `"connection_timeout"` values to
taste.

## Getting help

If you need help, or have any ideas, please feel free to [raise an
issue](https://github.com/davep/oshit/issues) or [start a
discussion](https://github.com/davep/oshit/discussions).

## TODO

Things I'm considering adding or addressing:

- [X] Chill out on item loading (see [#2](https://github.com/davep/oshit/issues/2))
- [ ] Add a configuration dialog for the connection value tweaks.
- [ ] Some degree of caching of items to reduce API hits.
- [ ] Expand the text-cleaning code to handle links, etc.
- [ ] Look at some "markup" of comments, eg: make quoted text more obvious.
- [ ] Add searching
  - [X] Amongst the current view
  - [ ] Amongst loaded comments within comment view
  - [ ] All of history ([`hn.algolia.com`](https://hn.algolia.com/api))

[//]: # (README.md ends here)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/davep/oshit",
    "name": "oshit",
    "maintainer": "Dave Pearson",
    "docs_url": null,
    "requires_python": "<3.13,>=3.10",
    "maintainer_email": "davep@davep.org",
    "keywords": "terminal",
    "author": "Dave Pearson",
    "author_email": "davep@davep.org",
    "download_url": "https://files.pythonhosted.org/packages/bd/a7/c15c25f6acda5e011857a7f22008d8136e5ab229438d9dbaecb2c3468c7f/oshit-0.11.1.tar.gz",
    "platform": null,
    "description": "# OSHit -- Get your hit of the Orange Site in the terminal\n\n## Introduction\n\nOSHit is a read-only terminal-based client for HackerNews. It provides the\nability to view all the top/recent items in the major categories, as well as\nallowing viewing comments and user details. Where relevant, bindings are\nalways available to open the relevant view on HackerNews itself in your web\nbrowser.\n\nPlease note that this client *isn't* designed to allow reading any and all\nstories on HackerNews, it's about reading what's current \"hot\" or new,\nwithin the categories provided by [their\nAPI](https://github.com/HackerNews/API).\n\n## Installing\n\nThe package can be installed using [`pipx`](https://pypa.github.io/pipx/):\n\n```sh\n$ pipx install oshit\n```\n\nOnce installed run the `oshit` command.\n\n## Main features\n\nWhen run up the opening display is a list of items, the initial list being\nthe current top stories and jobs on HackerNews. Other lists available, via\nshortcut keys or via tabs at the top of the screen, are \"New\", \"Best\",\n\"Ask\", \"Show\" and \"Jobs\".\n\n![The main index](https://raw.githubusercontent.com/davep/oshit/main/images/oshit-index.png)\n\nPressing <kbd>u</kbd> when viewing a job or a comment will open a dialog\nthat shows the details of the user who posted the item.\n\n![Viewing user details](https://raw.githubusercontent.com/davep/oshit/main/images/oshit-user-dialog.png)\n\nWhen viewing a story or job and pressing <kbd>c</kbd> a dialog will open\nthat will let you view and navigate its comments.\n\n![Viewing comments](https://raw.githubusercontent.com/davep/oshit/main/images/oshit-comments.png)\n\n## Tweaking\n\nBecause of the nature of the HackerNews API there might be a need for you to\ndial in the ideal number of concurrent connections made to load up the data,\nand also the timeout for the connections. As of the time of writing the\ndefaults are 50 concurrent connections and a timeout of 20 seconds.\n\nIf you run into problems look in `~/.config/oshit/configuration.json` and\nchange the `\"maximum_concurrency\"` and `\"connection_timeout\"` values to\ntaste.\n\n## Getting help\n\nIf you need help, or have any ideas, please feel free to [raise an\nissue](https://github.com/davep/oshit/issues) or [start a\ndiscussion](https://github.com/davep/oshit/discussions).\n\n## TODO\n\nThings I'm considering adding or addressing:\n\n- [X] Chill out on item loading (see [#2](https://github.com/davep/oshit/issues/2))\n- [ ] Add a configuration dialog for the connection value tweaks.\n- [ ] Some degree of caching of items to reduce API hits.\n- [ ] Expand the text-cleaning code to handle links, etc.\n- [ ] Look at some \"markup\" of comments, eg: make quoted text more obvious.\n- [ ] Add searching\n  - [X] Amongst the current view\n  - [ ] Amongst loaded comments within comment view\n  - [ ] All of history ([`hn.algolia.com`](https://hn.algolia.com/api))\n\n[//]: # (README.md ends here)\n",
    "bugtrack_url": null,
    "license": "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
    "summary": "A terminal-based HackerNews reader",
    "version": "0.11.1",
    "project_urls": {
        "Discussions": "https://github.com/davep/oshit/discussions",
        "Documentation": "https://github.com/davep/oshit/blob/main/README.md",
        "Homepage": "https://github.com/davep/oshit",
        "Issues": "https://github.com/davep/oshit/issues",
        "Source": "https://github.com/davep/oshit"
    },
    "split_keywords": [
        "terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bdbe927ab8452b2ec754cb85edb618bac68eed43c24432ed3ac16fe644b74569",
                "md5": "c9cd7edbfda47bda10519e0deb050892",
                "sha256": "7c8fee2dab5660054e6be9825ff096ca3f9c4c59c5125d994685ef6df25b912d"
            },
            "downloads": -1,
            "filename": "oshit-0.11.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9cd7edbfda47bda10519e0deb050892",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.10",
            "size": 34810,
            "upload_time": "2024-03-10T10:22:35",
            "upload_time_iso_8601": "2024-03-10T10:22:35.864931Z",
            "url": "https://files.pythonhosted.org/packages/bd/be/927ab8452b2ec754cb85edb618bac68eed43c24432ed3ac16fe644b74569/oshit-0.11.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bda7c15c25f6acda5e011857a7f22008d8136e5ab229438d9dbaecb2c3468c7f",
                "md5": "fd5d4efe895349d5818a3e82d8fe7d8c",
                "sha256": "6d4b70c03fc18d81b786c832ac015a9b7252b98403ea71f47c4992d58f30aa29"
            },
            "downloads": -1,
            "filename": "oshit-0.11.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fd5d4efe895349d5818a3e82d8fe7d8c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.10",
            "size": 24889,
            "upload_time": "2024-03-10T10:22:37",
            "upload_time_iso_8601": "2024-03-10T10:22:37.653208Z",
            "url": "https://files.pythonhosted.org/packages/bd/a7/c15c25f6acda5e011857a7f22008d8136e5ab229438d9dbaecb2c3468c7f/oshit-0.11.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-10 10:22:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "davep",
    "github_project": "oshit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "oshit"
}
        
Elapsed time: 0.20767s