# coding=utf-8 from atlassian import Bitbucket def html(project): html_data = "\n" html_data += "\t\n" html_data += "\t\n".format(**project) html_data += "\t\n".format(**project) html_data += "\t\n".format(**project) html_data += "\t\n".format(**project) return html_data + "
ITEMVALUE
key{key}
name{name}
description{description}
id{id}
\n" bitbucket = Bitbucket(url="http://localhost:7990", username="admin", password="admin") data = bitbucket.project("DEMO") print(html(data))