How can I call gsutil functions from a python program?

597 views
Skip to first unread message

Fragers Hardware

unread,
Sep 11, 2012, 2:19:18 PM9/11/12
to gsutil-...@googlegroups.com
Would like to use a python script to format filenames and upload/delete files from the storage area.  How can I call gsutil functions from within a python program?  Thanks!

Mike Schwartz (Google Storage Team)

unread,
Sep 11, 2012, 2:47:04 PM9/11/12
to gsutil-...@googlegroups.com
Hi,

The only way that gsutil is supported is if you run the gsutil command itself. As noted in the "README" file in the gslib directory, the gsutil library code is an internal interface, and we don't support users writing programs that directly call into that code (and, those interfaces can change without notice).

We have a number of users who call gsutil programmatically (for example using the Python subprocess module).

Mike
Reply all
Reply to author
Forward
0 new messages