Python SDK获取报告到类文件对象 [英] Python SDK getting report to file-like object

查看:81
本文介绍了Python SDK获取报告到类文件对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否可以使用Python SDK将报告下载到类似文件的对象而不是下载它是一个特定的文件?



我想将报告下载到一个tempFile,一旦我的程序停止使用它,它将自行删除我可以看到函数:`reporting_service_manager.download_result_file`只能获取文件夹和名称并处理整个文件创建
进程本身,而不允许我控制将要创建哪种文件。 



我知道我可以获取file_path然后自己删除它但它与使用临时文件不一样



提前致谢,



Dror Bar

解决方案

今天不支持,但我注意到了功能请求。我们将根据需求部分优先考虑其他问题。谢谢!

Hi,

Is it possible to use Python SDK to download a report to a file-like object instead of downloading it to a specific file?

I want to download the report to a tempFile which will delete itself once my program stop using it and from what I could see the function: `reporting_service_manager.download_result_file` can only get the file folder and name and handle the entire file-creation process itself without allowing me to control which kind of file is going to be created. 

I know I can probably get the file_path and then delete it myself but it's not the same as using a temp file

Thanks in advance,

Dror Bar

解决方案

This is not supported today, however I've taken note of the feature request. We will prioritize it alongside other asks based in part on demand. Thanks!


这篇关于Python SDK获取报告到类文件对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆