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