commit | 38051ac64efdb05f6c1de001871eeec138695d6f | [log] [tgz] |
---|---|---|
author | Brian J. Watson <brianwatson@google.com> | Tue Oct 25 07:53:08 2016 -0700 |
committer | Nathaniel Manista <nathaniel@google.com> | Mon Oct 31 16:39:44 2016 -0700 |
tree | 5c7d6dced357a08d24bdf61d45a2898cea361a8f | |
parent | 5f00cad0e257840c33117dc689e63984939f3649 [diff] |
Add media_mime_type keyword argument Sometimes the Python mimetypes module cannot automatically detect the MIME type of a media upload file, and the user would want to explicitly specify it. An example is audio/x-raw. This commit adds a media_mime_type keyword argument to media upload methods. If the caller does not specify this argument, a warning is logged to teach the user about it in case they need to explicitly specify a MIME type.
This is the Python client library for Google's discovery based APIs. To get started, please see the full documentation for this library. Additionally, dynamically generated documentation is available for all of the APIs supported by this library.
To install, simply use pip
or easy_install
:
$ pip install --upgrade google-api-python-client
or
$ easy_install --upgrade google-api-python-client
See the Developers Guide for more detailed instructions and additional documentation.
Python 2.6 or 2.7 are fully supported.
Python 3.3+ is also now supported! However, this library has not yet been used as thoroughly with Python 3, so we'd recommend testing before deploying with Python 3 in production.
The following libraries will be installed when you install the client library:
For development you will also need the following libraries:
Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.