Exemplo n.º 1
0
def mod_info(mod_id):
    return get_json("https://spacedock.info/api/mod/%i" % mod_id)
Exemplo n.º 2
0
def ksp_versions():
    return [e["friendly_version"] for e in get_json("https://spacedock.info/api/kspversions")]
Exemplo n.º 3
0
def contents(user, repo, path=""):
    return get_json("https://api.github.com/repos/%s/%s/contents/%s" % (user, repo, path))
Exemplo n.º 4
0
def json_in_file(user, repo, path, branch="master"):
    return get_json("https://raw.githubusercontent.com/%s/%s/%s/%s" % (user, repo, branch, path))
Exemplo n.º 5
0
def repo(user, repo):
    return get_json("https://api.github.com/repos/%s/%s" % (user, repo))
Exemplo n.º 6
0
def ksp_versions():
    return [
        e["friendly_version"]
        for e in get_json("https://spacedock.info/api/kspversions")
    ]
Exemplo n.º 7
0
def mod_info(mod_id):
    return get_json("https://spacedock.info/api/mod/%i" % mod_id)