Version (Version 2)
A module designed to get the version of the package.
Note
I wasn’t planning on adding this in at first, but because of how stuff works out here it is.
from PythonFunctions import Version
CanReadGlobal
- CanReadGlobal()
- Returns
If requests is installed
- Return type
bool
ReadLocal
- ReadLocal()
Gets the local version
- Returns
The local version
- Return type
str
ReadGlobal
Note
Module request is required to run this function.
- ReadGlobal()
Using request, gets the version off the server. (Timeouts after 60 seconds)
- Returns
The global (server) version
- Return type
Note
Fun Fact! The server is actually just the github repositry.
Compare
- Compare()
Using ReadLocal and ReadGlobal see if there is a new version. Prints out information about updating as well.