...
Specify the additional files in the pipelet upload command. For Example:
Code Block language bash title Pipelet Upload Command pipelet upload \ --data-file 'resource.txt' \ --cluster <cluster> \ --token <your_token> \ 'pipelet.py' \ 'TestPipelet'
In this example, we are uploading a file "resource.txt" along with the pipelet.
Access the contents of the file(s) from within the pipelet
Code Block language py title Pipelet File from squirro.sdk import require, PipeletV1 @require('files') class TestPipelet(PipeletV1): def consume(self, item): with self.files.get_file('resource.txt') as f: data = f.read()
...