def getsleek(): try: mod = _import("sleekxmpp") except: mod = _import("jsb.contrib.sleekxmpp") logging.info("sleek module is %s" % str(mod)) return mod
def gettweepy(): try: mod = _import("jsb.contrib.tweepy") except: mod = _import("jsb.contrib.tweepy") logging.info("tweepy module is %s" % str(mod)) return mod
def getjson(): try: mod = _import("json") except: try: mod = _import("simplejson") except: mod = _import("jsb.contrib.simplejson") logging.debug("json module is %s" % str(mod)) return mod
def gettornado(): try: mod = _import("tornado") except: mod = _import("jsb.contrib.tornado") logging.info("tornado module is %s" % str(mod)) return mod
def getBeautifulSoup(): try: mod = _import("BeautifulSoup") except: mod = _import("jsb.contrib.BeautifulSoup") logging.info("BeautifulSoup module is %s" % str(mod)) return mod
def getoauth(): try: mod = _import("oauth") except: mod = _import("jsb.contrib.oauth") logging.info("oauth module is %s" % str(mod)) return mod
def getfeedparser(): try: mod = _import("feedparser") except: mod = _import("jsb.contrib.feedparser") logging.info("feedparser module is %s" % str(mod)) return mod
def getrequests(): try: mod = _import("requests") except: mod = None logging.info("requests module is %s" % str(mod)) return mod
def getdns(): try: mod = _import("dns") except: mod = None logging.debug("imports - dns module is %s" % str(mod)) return mod
def getwebapp2(): try: mod = _import("webapp2") except: mod = _import("jsb.contrib.webapp2") logging.debug("webapp2 module is %s" % str(mod)) return mod
def getrequests(): try: mod = _import("requests") except: mod = _import("jsb.contrib.requests") logging.info("imports - requests module is %s" % str(mod)) return mod
def getdns(): try: mod = _import("dns") except: mod = _import("jsb.contrib.dns") logging.debug("imports - dns module is %s" % str(mod)) return mod