Package pysmug :: Module methods
[hide private]
[frames] | no frames]

Module methods

source code

This module provides some lower-level metadata used to communicate with the SmugMug API.

Functions [hide private]
 
_smugbool(value)
Formats the value into an appropriate boolean representation for SmugMug.
source code
Variables [hide private]
  apikeys = {'albumkey': ('AlbumKey', None), 'apikey': ('APIKey'...
A mapping between lower-cased names and their SmugMug API case and formatting function.
  methods = set(['smugmug.albums.applyWatermark', 'smugmug.album...
Valid methods for the SmugMug (+ extended) API.
Function Details [hide private]

_smugbool(value)

source code 

Formats the value into an appropriate boolean representation for SmugMug. The SmugMug API will accept boolean values as either true|false or 1|0 so this function accepts both strings and boolean/integer Python values and returns the appropriate representation for the API. There is no corresponding mapping for inbound data.


Variables Details [hide private]

apikeys

A mapping between lower-cased names and their SmugMug API case and formatting function. This is a one-way mapping usually used to format a Python bool into its numeric value usable by the SmugMug API.

Value:
{'albumkey': ('AlbumKey', None),
 'apikey': ('APIKey', None),
 'emailaddress': ('EmailAddress', None),
 'filename': ('FileName', None),
 'heavy': ('Heavy', <function _smugbool at 0x58df70>),
 'imagekey': ('ImageKey', None),
 'passwordhash': ('PasswordHash', None),
 'pretty': ('Pretty', <function _smugbool at 0x58df70>),
...

methods

Valid methods for the SmugMug (+ extended) API.

Value:
set(['smugmug.albums.applyWatermark',
     'smugmug.albums.changeSettings',
     'smugmug.albums.create',
     'smugmug.albums.delete',
     'smugmug.albums.get',
     'smugmug.albums.getInfo',
     'smugmug.albums.getStats',
     'smugmug.albums.reSort',
...