Having to handle external python libraries is a thing of the past. This component installs PIP directly in your project and dynamicly downloads and import the libraries in your project.
To install and use a package, instead of running
import my_module
run TD_Pip like this:
my_module = op('td_pip').ImportModule( "my_module",
pipPackageName = "my_module_on_pip,
additionalSettings = [list of additional arguments] )
i.E.
import socketio
becomes
socketio = op("td_pip").ImportModule( "socketio", pipPackageName = "python-socketio[client]" )
To just install a package run
op('td_pip').InstallPackage( package_name )
To check if a package is installed run
op("td_pip").TestModule("TestModule")
To force an upgrade on a Package run
op("td_pip").UpgradePackage( "TestModule" )