Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/344.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
文件上载到Python中的Google云存储签名URL_Python_Google Cloud Platform_Google Cloud Storage - Fatal编程技术网

文件上载到Python中的Google云存储签名URL

文件上载到Python中的Google云存储签名URL,python,google-cloud-platform,google-cloud-storage,Python,Google Cloud Platform,Google Cloud Storage,有人能帮我用Python将文件上传到谷歌云存储签名URL的代码吗?最好使用请求库?你可以在Github上看看这个。它展示了一种使用PyCrypto和请求实现这一点的可移植方法 请注意,如果您的应用程序在app Engine上运行,您可以使用app Engine标识服务及其签名blob()方法轻松对字符串进行签名,如文档所述。以下是使用签名blob()的AppEngine应用程序,如LundinCast回答中所述。我验证了它的工作原理

有人能帮我用Python将文件上传到谷歌云存储签名URL的代码吗?最好使用请求库?

你可以在Github上看看这个。它展示了一种使用PyCrypto和请求实现这一点的可移植方法

请注意,如果您的应用程序在app Engine上运行,您可以使用app Engine标识服务及其
签名blob()
方法轻松对字符串进行签名,如文档所述。

以下是使用
签名blob()
的AppEngine应用程序,如LundinCast回答中所述。我验证了它的工作原理