import json import gzip import io import sys import traceback try: from _version import __buildid__, __version__, __builddate__, __toolname__, __useragent__ except ImportError: __buildid__ = "UNKNOWN" __version__ = "UNKNOWN" __builddate__ = "NONE" __toolname__ = "mEDI s Elite Tools" __useragent__ = '%s/%s (%s) %s(%s)' % ( __toolname__.replace(" ", ""), __version__, sys.platform, __buildid__, __builddate__.replace(" ", "").replace("-", "").replace(":", "")) try: ''' python 2.7''' import urllib2 from urllib import urlencode except ImportError: ''' python 3.x''' import urllib.request as urllib2 from urllib.parse import urlencode __APIUrl__ = "https://eddb.io" class eddbweb(object):
""" import re from datetime import datetime, timedelta import gzip import io import sys try: from _version import __buildid__, __version__, __builddate__, __toolname__, __useragent__ except ImportError: __buildid__ = "UNKNOWN" __version__ = "UNKNOWN" __builddate__ = "NONE" __toolname__ = "mEDI s Elite Tools" __useragent__ = "%s/%s (%s) %s(%s)" % ( __toolname__.replace(" ", ""), __version__, sys.platform, __buildid__, __builddate__.replace(" ", "").replace("-", "").replace(":", ""), ) try: import urllib2 except ImportError: import urllib.request as urllib2 class loader(object): __dataCache = {}
from datetime import datetime, timedelta import json import gzip import io import sys try: from _version import __buildid__, __version__, __builddate__, __toolname__, __useragent__ except ImportError: __buildid__ = "UNKNOWN" __version__ = "UNKNOWN" __builddate__ = "NONE" __toolname__ = "mEDI s Elite Tools" __useragent__ = '%s/%s (%s) %s(%s)' % (__toolname__.replace(" ", ""), __version__, sys.platform, __buildid__, __builddate__.replace(" ", "").replace("-", "").replace(":", "")) try: import urllib2 except ImportError: import urllib.request as urllib2 class loader(object): ''' classdocs ''' mydb = None def __init__(self, mydb):
from datetime import datetime, timedelta import json import gzip import io import sys try: from _version import __buildid__, __version__, __builddate__, __toolname__, __useragent__ except ImportError: __buildid__ = "UNKNOWN" __version__ = "UNKNOWN" __builddate__ = "NONE" __toolname__ = "mEDI s Elite Tools" __useragent__ = '%s/%s (%s) %s(%s)' % (__toolname__.replace(" ", ""), __version__, sys.platform, __buildid__, __builddate__.replace(" ", "").replace("-", "").replace(":", "")) try: import urllib2 except ImportError: import urllib.request as urllib2 class loader(object): ''' classdocs ''' mydb = None