一个非常基础的Atlassian REST客户端
项目描述
python-simpleatlassian
最简单、功能最强大的Atlassian (JIRA) Python API
安装
pip安装simpleatlassian
使用
from simpleatlassian import JIRA
# Make a connection with basic auth
j = JIRA(
'https://myjirahost.com/jira/rest/',
username='myuser',
password='mypw'
)
# Search some issues (get_all collects all pages of a result)
issues = j.get_all(
'api/2/search',
params={
'jql': 'issuetype = Bug'
},
resultfield='issues'
)
# Get a board configuration
j.get('agile/1.0/board/1/configuration')
不要忘记查看Atlassian的官方文档: https://docs.atlassian.com/jira-software/REST/latest/
开发
上传到pip
- 确保版本号已更新
- 生成dist文件
python setup.py sdist bdist_wheel
- 上传到PyPI
twine upload dist/*