Switch from imports_post to imports_post_files_csv in write_civis.character and write_civis.numeric.
Before uploading, files need to be cleaned withfiles_post_process_csv. Note in the reference PR the steps that are needed to process the cleaning results.
The client will need to be regenerated to access the new endpoints.
Support multiple file ids in write_civis.numeric. If multiple files are uploaded, check that the schema, headers, delimiter, and compression are consistent across files. Upload the files in parallel.
In general:
get_headers
.imports_post
toimports_post_files_csv
inwrite_civis.character
andwrite_civis.numeric
.files_post_process_csv
. Note in the reference PR the steps that are needed to process the cleaning results.write_civis.numeric
. If multiple files are uploaded, check that the schema, headers, delimiter, and compression are consistent across files. Upload the files in parallel.upsert
option toif_exists
.See https://github.com/civisanalytics/civis-python/pull/328 for all details.