Putting all these files in my_folder
and running python -m my_folder.main
gives:
Called activity with MySpecialObject(foo='some-foo-val')
Called activity with some-other-val
And when reviewing the history, you can see the special encoding/object:
"input": {
"payloads": [
{
"metadata": {
"encoding": "dGV4dC9teS1wYXlsb2FkLWVuY29kaW5n"
},
"data": "c29tZS1mb28tdmFs"
}
]
}
Which base64 decodes into text/my-payload-encoding
encoding and some-foo-val
data. And the non-special encoding/object:
"input": {
"payloads": [
{
"metadata": {
"encoding": "anNvbi9wbGFpbg=="
},
"data": "InNvbWUtb3RoZXItdmFsIg=="
}
]
}
Which base64 decodes into json/plain
and "some-other-val"
.