cos-python3-sdk icon indicating copy to clipboard operation
cos-python3-sdk copied to clipboard

腾讯云对象存储服务(cos)Python3.5版本SDK

Results cos-python3-sdk issues
Sort by recently updated
recently updated
newest added

Hi Hupeng,感谢你分享的代码。我从你这里fork了一下,由于我修改了一些返回格式,会导致不向以前兼容,所以不要合并。这个PR是为了提供一些建议。 * 比较大的问题是,不要使用`eval`,尤其是绝不要对网络返回的结果使用`eval`。 * 可以统一使用`requests`,不用`httplib2`。 * 上传接口应该支持上传内存中的文件,而无需保存在本地。 * 补充了几个API。 另外就是风格上的小问题,我按照个人爱好重构了一下,并不重要。

请大神帮忙测试一下 https://github.com/a270443177/cos-python3-sdk-v4

不是标准的那种URL 好像就直接下载不了了 URL http://www.abc.com/1.txt 这样的是可以得 但是如果是 URL http://proxy-rar2.aaa.com/00/90/76/72/592a82cb3c988.zip?st=oMKU8VvHox79IcpfQcOLuQ&e=1496737341 就下载不了

bug

def CreateFolder_Tecent(): cos = Cos(app_id=1,secret_id='AKIDAlGaXKV5',secret_key='iEYfhYlhWBg097tX2Pdg',region='gz') bucket = cos.get_bucket("ExcelFile") bucket.create_folder("/ExcelFileUser") print("create bucket success") def exportExcelFile(): cos = Cos(app_id=1256960769,secret_id='AKIDAlGaXKVLZcT9exqi8PVP7ez97tTxOOK5',secret_key='iEYfhYFoESUKzSkYEilhWBg097tX2Pdg',region='gz') bucket = cos.get_bucket("ExcelFile") real_file_path="/Users/dempsey/Desktop/Sample.xlsx" file_name_inBucket = "Sample.xlsx" dir_name = "/ExcelFileUser" data=bucket.upload_file(real_file_path,file_name_inBucket,dir_name) query=bucket.query_folder(dir_name) print(data)...

官方文档更新了。文件路径什么的已经不对了。 直接登录会提示 类似这样的: You do not have permission to get URL '/files/v2/1253424161/test//test.png' from this server. 现在的文档类似这样: https://cloud.tencent.com/document/product/436/14690

bug