I am working python 2.7 some codes which needs to import module from the other Github repository, any suggestions on what's the best way to import the module? I could git clone the other Github repository to local, but what if there is a change I am not aware of so I still need to sync. Or should I pull the code from Github directly? Thanks in advance.
Personally I would clone it to local and then reference the module from there. If a bug suddenly surfaces in the most recent commits from the module, it may impact your application right away. By keeping a stable version on your local, it would eliminate one more place to check during debugging of your application.
Of course, if you pull the module from GitHub directly then you'll get all the latest updates and features, but I would do that if the module is thoroughly tested before it gets committed.
This is just my two cents. Hope that helps.
Suggestion on import python module from another github project