Click here to visit the old openkoji buildsystem (Archived)

API reference (hub version: 1.34.0, web version: 1.34.0)

Various constants used in API calls can be found in first part of koji module. Exceptions which can be raised in python client are just after constants section. More details about XMLRPC interface are documented here. Basic anonymous client in python would look like this:
import koji

mytag = "mytag"
session = koji.ClientSession("https://openkoji.iscas.ac.cn/kojihub")
try:
    repo_info = session.getRepo(mytag, koji.REPO_STATES["READY"], dist=True)
    if not repo_info:
        print(f"There is no active dist repo for {mytag}")
except koji.GenericError:
    print(f"Tag {mytag} doesn't exist")

List of API calls