Example #1
0
 def test_download_latest_with_target_dir(self):
     topology = Topology()
     target_dir = 'pypi.streamsx.nlp.tests-' + str(
         uuid.uuid4()) + '/nlp-toolkit'
     location = toolkits.download_toolkit('com.ibm.streamsx.nlp',
                                          target_dir=target_dir)
     print('\ntoolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
Example #2
0
 def test_download_samples(self):
     topology = Topology()
     location = toolkits.download_toolkit('samples',
                                          repository_name='streamsx.nlp')
     print('\nsamples location: ' + location)
     files = os.listdir(location)
     for name in files:
         print(name)
Example #3
0
 def test_download_with_url_and_target_dir(self):
     topology = Topology()
     target_dir = 'pypi.streamsx.nlp.tests-' + str(
         uuid.uuid4()) + '/nlp-toolkit'
     url = 'https://github.com/IBMStreams/streamsx.nlp/releases/download/v1.9.0/streamsx.nlp.toolkits-1.9.0-20190404-1329.tgz'
     location = toolkits.download_toolkit('com.ibm.streamsx.nlp',
                                          url=url,
                                          target_dir=target_dir)
     print('\ntoolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
Example #4
0
 def test_download_with_url(self):
     topology = Topology()
     url = 'https://github.com/IBMStreams/streamsx.nlp/releases/download/v1.9.0/streamsx.nlp.toolkits-1.9.0-20190404-1329.tgz'
     location = toolkits.download_toolkit('com.ibm.streamsx.nlp', url=url)
     print('\ntoolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
Example #5
0
 def test_download_latest_with_repo(self):
     topology = Topology()
     location = toolkits.download_toolkit('com.ibm.streamsx.nlp',
                                          repository_name='streamsx.nlp')
     print('\ntoolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
Example #6
0
 def test_download_latest(self):
     topology = Topology()
     location = toolkits.download_toolkit('com.ibm.streamsx.nlp')
     print('\ntoolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)