Package pyrobase :: Package webservice :: Module imgur
[hide private]
[frames] | no frames]

Module imgur

source code

imgur image hosting.

Copyright (c) 2012 The PyroScope Project <pyroscope.project@gmail.com>

Classes [hide private]
  ImgurUploader
Upload an image to "imgur.com".
Functions [hide private]
 
fake_upload_from_url(url)
Return a 'fake' upload data record, so that upload errors can be mitigated by using an original / alternative URL.
source code
 
cache_image_data(cache_dir, cache_key, uploader, *args, **kwargs)
Call uploader and cache its results.
source code
 
copy_image_from_url(url, cache_dir=None, use_cache=True)
Copy image from given URL and return upload metadata.
source code
 
_main()
Command line interface for testing.
source code
Variables [hide private]
  LOG = logging.getLogger(__name__)
  UploadError = (<class 'socket.error'>, <class 'httplib.HTTPExc...
  __package__ = 'pyrobase.webservice'
Variables Details [hide private]

UploadError

Value:
(<class 'socket.error'>, <class 'httplib.HTTPException'>)