INNER CODE UNIT · Python

write_output

microsoft/botframework-sdk · dri/output.py:31

    def write_output(self, file_name = "botreport_" + datetime.now().strftime("%Y%m%d_%H%M%S") + ".json"):
        with open(file_name, mode="w", encoding="utf-8") as json_file:
            json_file.write(jsonpickle.encode(self, unpicklable=False))

# Repository output format for UI
class OutputRepository():
    def __init__(self, name):
        self.name = name
        self.issues = []

# Issue output format for UI
class OutputIssue():
    def __init__(self, tag, issue):
        self.tag = tag
        self.issue = issue

def print_issue(issue):
    print(f'        {issue.number} : {issue.title}')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…