Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669025yIf it updates in real time or near enough.
Cpu usage (% per core)
Ram usage / free
Network usage up/down -
KingMilo6535y@C0D4 I like this mate! thank you :-) however I'm not exactly sure how to update in real time - cheers! :-)
-
KingMilo6535y@C0D4 Wonderful! is there a way i can share this with you and you could possibly give me feed back? i'm currently just lone wolfing this project myself ahah :-) cheers
-
LoganDark95yThat's a good first project! Maybe you could let it run in the background and notify you if your space is getting too low, or something like that. Then when it's done, you can convert it to a more advanced/faster language like Go/Rust/C++/etc.
-
KingMilo6535y@seluard Unfortuneately i cannot edit the rant - however i will post the link here below.. :-)
https://github.com/milosv1/... -
KingMilo6535y@LoganDark Very good thought ! and thank you mate :-) I've posted a link to the repo here in the comments as i cannot actually edit my post im afraid :-) cheers!
-
C0D4669025yTraceback (most recent call last):
File "compiler.py", line 16, in
user_acc = os.getlogin()
OSError: [Errno 25] Inappropriate ioctl for device
Guess I can't do that on an iPhone 😅
I'll try again later on my laptop. -
KingMilo6535y@C0D4 thank you for giving it ago mate :-) i tested it on my macbook and it works :'D give it a go later mate and let me know :D cheers
-
KingMilo6535y@C0D4 Thank you for trying it out for me mate :-) i'm doing the best i can to work on it piece by piece, so things aren't exactly wonderful but i am enjoying the process, so i thought it would be a great idea to ask through here also :D
-
LoganDark95yYou don't have to comment every line :P
#Call get_Platform()
get_platform()
#call get_account function
get_account()
#get capacity
get_capacity(my_path)
#get_usedSpace
get_usedSpace(my_path) -
KingMilo6535y@C0D4 I actually did not know it worked on phones :-), it was mainly meant to be for my macbook and PC but why not? :D cheers
-
The code should be a lot more clear, you need to pay more attention to variable naming.
Also never ever mix snake_case with camelCase it's really_badPractice.
And you should have as little comments as possible, the code should be self explanatory.
`free_amount = free_b/gb` for exemple is really bad.
By reading it, it's hard to understand that it returns the same value (the space left) but on a different scale (byte->gigabyte)
Otherwise it's not bad, keep it up. (we all started like this 😉) -
KingMilo6535y@MagicSowap thank you my friend 😄 I appreciate you taking the time to read through the code and I also appreciate the feedback as it's important for myself however harsh it maybe :) - I need to learn one way or another :) cheers
-
KingMilo6535y@C0D4 thank you my friend 😄 once again I very much appreciate your help and the time you have taken to have a look at it for me 😊 - quick question, do the numbers look all correct? :) Cheers
-
C0D4669025y
-
C0D4669025y@miloking,
damn, image didnt upload.
when using GiB then yes, its right with rounding.
but windows... likes to display things in GB units. -
KingMilo6535y@C0D4 Awesome! - once again cheers mate :-), apart from whats listed above, anything else you would add to it? :D - once i get a good few things added to it - ill ask the community to let me know what they think :D thank you
-
KingMilo6535y@C0D4 Ah i see - so do you reckon i should display both Bytes and GB like this? or do you think its good as is? :)
-
C0D4669025y@KingMilo those graphs take up a lot of realestate, I'd make them optional through args something like:
--bar-chart
--pie-chart
--all-charts
For the people that will use it, leave it as bytes. -
KingMilo6535y@C0D4 good thought, so maybe i should have an if statement like 1 for pie, 2 for bar , 3 for all?
-
C0D4669025y@KingMilo yea, so accepting arguments from the cli And having some ifs in place to output if the arg was entered.
https://docs.python.org/3/library/... -
KingMilo6535y@C0D4 Thank you mate :D i will read into this shortly and try to implement something :-) once again thanks for taking the time to give me a hand :D - i'll do another post once i feel its good enough!
-
C0D4669025y@KingMilo not a problem, 5 minutes messing with someone else's work is 5 minutes not breaking my own things 😅
-
KingMilo6535y@C0D4 aha not a worry :D - i must say this project is something i'm really proud of :')
Related Rants
Hey everyone :-) - Hope you're all doing well & Staying safe, i just have a question for you all, i have a project i am working on which is a command line tool to track my storage on my PC & laptop, right now it outputs my remaining space, used space and storage capacity :-), it also shows these numbers on bar chart & pie chart - i'm proud of it! :D , its written in Python also - would love to know what other things would you guys add to it? any ideas? id really appreciate it :-) cheers! <3
random
learning
ideas
python
project