csv
Download or upload csv files
This microservice
- can be used to
- upload json content to specified url
- download csv content as json from specified url
Important Notes
- Port 5000 is used unless specified otherwise via environment variable PORT
- All SESAM reserved fields except the ones specified in the sesam_fields_wl parameter are omitted from the output csv upon upload
- transit_decode parameter can be used to remove the transit encoding
- boolean query parameters reveals True only if it the balue is "true" in case INsensitive manner
- pandas library is used and all the applicable features are applied with service specific defaults. see followings for and the defaults in the service.py to figure out the full capability list
- Download
- Upload
example config in SESAM
system:
{
"_id": "my-csv-proxy",
"type": "system:microservice",
"connect_timeout": 60,
"docker": {
"environment": {
"LOGLEVEL": "DEBUG"
},
"image": "sesamcommunity/csv:v1.0",
"port": 5000
},
"read_timeout": 7200
}
pipe:
{
"_id": "company-freshdesk-ftp-endpoint-get-csv+ftp",
"type": "pipe",
"source": {
"type": "json",
"system": "my-csv-proxy",
"url": "/download?url=http://some-server/some-path/somefile.csv"
},
"transform": {
"type": "dtl",
"rules": {
"default": [
["add", "_id", "_S.id_field"],
["copy", "*"]
]
}
}
}