I wrote a minimalist fetch tool for Linux with Python programming language. Have a look: mlzfetch.
UPDATE: Now with installation support (pip install .)
Also I added a performance benchmark into README.
I wrote a minimalist fetch tool for Linux with Python programming language. Have a look: mlzfetch.
UPDATE: Now with installation support (pip install .)
Also I added a performance benchmark into README.
18 Comments
tafabey@programming.dev · 1 pts · 155d
In the README, you can see the difference in performance between mlzfetch and fastfetch.
tafabey@programming.dev · 1 pts · 155d
UPDATE: Now with installation support (
pip install .)org@lemmy.org · 1 pts · 156d
Why not neofetch?
thingsiplay@lemmy.ml · 5 pts · 156d
neofetch is dead since years. I recommend fastfetch instead neofetch. Besides that, its not really minimalistic as this one. Also because it is written in Python and minimalistic, its easier to make changes for lot of people.
tafabey@programming.dev · 2 pts · 156d
Thanks for your answer.
org@lemmy.org · 0 pts · 156d
Fair, but the runtime dependency is Python.
thingsiplay@lemmy.ml · 2 pts · 156d
As it is for Linux, I don't think that's a problem. Python is pre installed on basically all Linux operating systems.
org@lemmy.org · 0 pts · 156d
Bash would be more efficient at this point. But you clearly like this for some reason, which is fine.
thingsiplay@lemmy.ml · 2 pts · 156d
I don't believe that. In fact, neofetch is written in Bash and is known to be slow (that is why I looked at faster options). Python is not really slow. It is just a little bit slower on the starting the interpreter, but then it does not matter how fast it is. Because the thing which Python is slow is mostly math and that does not matter much for system query like this.
Did you test neofetch and this program in Python? Because you would be surprised at how fast it can be.
org@lemmy.org · 1 pts · 156d
Did you test this program re-written as a script vs running it in Python?
thingsiplay@lemmy.ml · 2 pts · 156d
No, but I was not the one claiming that the Bash version would be more performant. As said this is querying the system information, in which Python does basically the same job as Bash. I mean we are not comparing math.
TehPers@beehaw.org · 2 pts · 156d
Rust would be more efficient. Hand written assembly would be more efficient. Using butterflies to manually flip bits in the memory would be more efficient.
OP wanted to use Python. It's not a very large program. It really doesn't matter.
org@lemmy.org · 0 pts · 156d
Nothing matters 🤷♂️