Package pysmug
[hide private]
[frames] | no frames]

Package pysmug

source code

A high-performance client to the SmugMug API.

This client supports the entire set of methods available through smugmug both serially and in batch.

References:


Version: 0.2

Submodules [hide private]

Functions [hide private]
 
login(conf=None)
Login to smugmug using the contents of the configuration file.
source code
Function Details [hide private]

login(conf=None)

source code 

Login to smugmug using the contents of the configuration file.

If no configuration file specified then a file named .pysmugrc in the user's home directory is used if it exists.

The following order determines the login method used:
  • In all cases APIKey is required.
  1. If PasswordHash is in configuration, then login_withHash is used.
    • UserID is additionally required.
  2. If Password is in configuration, then login_withPassword is used.
    • EmailAddress is additionally required.
  3. Else login_anonymously is used.
Parameters:
  • conf - path to a configuration file
Raises:
  • ValueError - if no configuration file is found