Module FileDropper
[hide private]
[frames] | no frames]

Module FileDropper

source code

Interact with FileDropper.com

Classes [hide private]
  FileDropperException
  FileDropper
Builds an empty FileDropper object that may be used for uploading files to FileDropper.com, get details about files in a premium account, change their permission or delete them.
Variables [hide private]
  FD_PERM_PUBLIC = 0
  FD_PERM_PASSWORD = 1
  FD_PERM_PRIVATE = 2
  FD_URL = 'http://www.filedropper.com/'
  FD_LOGIN_URL = 'http://www.filedropper.com/login.php'
  FD_PREMIUM_URL = 'http://www.filedropper.com/premium.php'
  FD_UPLOAD_URL = 'http://www.filedropper.com/index.php?xml=true'
  FD_PERM_URL = 'http://www.filedropper.com/premium.php?action=s...
  FD_DELETE_URL = 'http://www.filedropper.com/premium.php?action...
  FD_MAX_SIZE = 5368709120
  FD_ERROR_NOT_LOGGED_IN = 1
  FD_ERROR_PERMISSIONS = 2
  FD_ERROR_FILE_TOO_BIG = 3
  FD_ERROR_UPLOAD = 4
  FD_ERROR_INVALID_PASSWORD = 5
  FD_ERROR_REQUEST = 6
  FD_ERRORS = {1: 'Not logged in', 2: 'Invalid permissions', 3: ...
  FD_RE_LIST = re.compile(r'^unhide\(\'(\d+)\'\)')
  __package__ = None
Variables Details [hide private]

FD_PERM_URL

Value:
'http://www.filedropper.com/premium.php?action=setpermissions&%(varset\
)s&id=%(id)d'

FD_DELETE_URL

Value:
'http://www.filedropper.com/premium.php?action=delete&id=%d'

FD_ERRORS

Value:
{1: 'Not logged in',
 2: 'Invalid permissions',
 3: 'File is too big',
 4: 'Error while uploading a file',
 5: 'Invalid password',
 6: 'Problem with the request'}