Open comments for this post
I have added a pinging utility to the companion. This allows for easy batch pinging where needed. Adding this also meant I created a utility menu, which I will expand upon and add more to. The code requires ping from pythonping, but that means pythonping has to be pip installed. This is not a large problem, as the rest of the code works fine, and the python file warns that it is not installed, and says how. However, a future improvement could be making a way that the user doesn’t need to install this.
Open comments for this post
I have been working on getting the main parts of my python script finished, so I can build off there. My code now saves the users name to a .json file which can be accessed the next time the python file is run. It is stored in a name variable, so it can be accessed throughout the script. I have also added an app opening function, which has some simple tasks I have learned how to open. Finally, I added some extra parts to help ensure the code accepts what the user wants, even if it isn’t word-for-word. One way in python of doing this is adding .lower() after an input, or before checking the input, as it reduces the possible inconsistencies if needing to compare it.
Open comments for this post
Getting Coding Companion to store .json data. I also made sure that git would not save the .json data, so I am able to run tests, without those modifications being changed in Github. This means other people could use the software, and wouldn’t start with my presets, but with the default.