Beispiel #1
0
def mods(VERSION):
	"""
	Returns a list of mods on the selected [VERSION].
	[ALL] is an acceptable request for [VERSION].
	"""

	d = urllib2.urlopen(entrypoint(str(VERSION)) + '.json')
	e = json.loads(d.read())
	return e
Beispiel #2
0
def mods(VERSION):
    """
	Returns a list of mods on the selected [VERSION].
	[ALL] is an acceptable request for [VERSION].
	"""

    d = urllib2.urlopen(entrypoint(str(VERSION)) + '.json')
    e = json.loads(d.read())
    return e
Beispiel #3
0
def recent():
	"""
	Returns a dict of recent changes.
	It is the most recent partial piece of the
	changelog of all supported versions.
	"""

	d = urllib2.urlopen(entrypoint('recent.json'))
	e = json.loads(d.read())
	return e
Beispiel #4
0
def md5hash(VERSION):
	"""
	Returns the md5 hash of the selected [VERSION].
	[ALL] is an acceptable request for [VERSION].
	Hash request is returned in plain text, not JSON.
	This is an md5 hash of the requested json file.
	"""

	d = urllib2.urlopen(entrypoint(str(VERSION)) + '.md5')
	return d.read()
Beispiel #5
0
def recent():
    """
	Returns a dict of recent changes.
	It is the most recent partial piece of the
	changelog of all supported versions.
	"""

    d = urllib2.urlopen(entrypoint('recent.json'))
    e = json.loads(d.read())
    return e
Beispiel #6
0
def md5hash(VERSION):
    """
	Returns the md5 hash of the selected [VERSION].
	[ALL] is an acceptable request for [VERSION].
	Hash request is returned in plain text, not JSON.
	This is an md5 hash of the requested json file.
	"""

    d = urllib2.urlopen(entrypoint(str(VERSION)) + '.md5')
    return d.read()