How one can process the source code in a one file structure? #285
-
I'm currently obsessed with this tool and wanted to use the style and general feeling in my own scripts and improve this one. As a newbie, I have a hard time reading the file. Is there a tool used to tailor different parts of this one file together? On a more general side: Is it better to use this as a template or something like "Prompt toolkit"? (any other noob-friendly alternative to it?) I'd be more than glad if one could provide any helpful resources. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Davoodeh However using bpytop as a kinda framework for writing other programs is not gonna be easy unless you have got a good grasp of classes, subclasses and class methods. All core functions; text buffering, keyboard/mouse input, and etc., was written specifically for use in bpytop so might need a lot of modifying to work well in other projects. The only documentation currently existing is the sparse comments I've left in the code. There is some great documentation for psutil (the library bpytop is heavily dependent on) at: https://psutil.readthedocs.io/en/latest/ If you have questions about specific parts of the code feel free to open new discussion threads and I will try to answer when I've got time :) |
Beta Was this translation helpful? Give feedback.
@Davoodeh
Well, in general I would recommend vscode to get a better overview when coding regardless of language or how big the file is. There is loads of useful plugins and it provides a really nice outline to make your life easier and quickly jump around big files. This is my coding setup for bpytop:
However using bpytop as a kinda framework for writing other programs is not gonna be easy unless you have got a good grasp of classes, subclasses and class methods. All core functions; text buffering, keyboard/mouse input, and etc., was written specifically for use in bpytop so might need a lot of modifying to work well in other projects.
The only documentation currently existing is the spa…