Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The code base seems like a good reference as a small Python project.

My fav option in this class of apps: https://lnav.org/ It lets you use journalctl with pipes as requested here: https://github.com/Textualize/toolong/issues/4



Plus it's possible to download lnav as a statically linked binary, which is very nice. (Would have been even better if it was in the official repos.) I'm not interested in installing things using yet another package manager, like pip or the like.


Mind elaborating why this would be a good reference? Not saying it isn't, just want to understand why you think so


Hi there! I'm mostly AFK for a couple days so replies might be delayed, but some notes:

- System tool niche that I find interesting so it's nice to see a fairly complete and yet relatively small project

- Textual seems to be their largest dependency, but other than that the project seems self-contained and relies on the standard library

- With some exceptions, the majority of methods are short and easy to parse

- Typing support :)


Makes total sense, I think I was a bit thrown of after the first glance because there are so many classes and files [0] and it reads a bit like Java code.

But after a second glance it looks very well written compared to many other python projects, which sometimes read like a 5000 line bash script.

And I can't argue against your arguments, especially using "minimal" dependencies and using typing.

Typing often helps for autocompletion and understanding what a variable/function "means", which makes it [1] easier to start hacking on it.

[0] not necessarily bad, just wasn't what I would expect to be a small reference project

[1] not always, sometimes types can be too verbose and start messing with your brain ;)


I donated to lnav, it's just soo good!


lnav is great




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: