Encodes incoming objects using encoding. If incoming is not specified, text is expected to be encoded with current python’s default encoding. (sys.getdefaultencoding)
Parameters: |
|
---|---|
Returns: | text or a bytestring encoding encoded representation of it. |
Decodes incoming objects using incoming if they’re not already unicode.
Parameters: |
|
---|---|
Returns: | text or a unicode incoming encoded representation of it. |
Search for the first defined of possibly many env vars
Returns the first environment variable defined in vars, or returns the default defined in kwargs.
Helper for the _find_* methods.
Check image data integrity.
Raises : | IOError |
---|
Checks to see if the function requires authentication.
Use the skip_authentication decorator to indicate a caller may skip the authentication step.
Save an image to the specified path.
Parameters: |
|
---|
Function decorator used to indicate a caller may be unauthenticated.