aiojira - asynchronous Jira Python library
Asynchronous Jira Python library - asynchronous wrapper for https://github.com/pycontribs/jira
Installation
To install from PyPI run:
$ pip install https://github.com/yifeikong/aioify/archive/master.zip
$ pip install aiojira
Usage
For documentation refer to https://jira.readthedocs.io, because aiojira
uses the same API as jira
with 2 exceptions:
- All functions are converted to coroutines, that means you have to add
await
keyword before all function calls. - To asynchronously create classes from
aiojira
use static methodcreate
.
Example:
import asyncio
import aiojira
server = 'https://jira.example.com/'
auth = ('user', 'password')
JIRA = asyncio.run(aiojira.JIRA.create(server=server, basic_auth=auth))
projects = asyncio.run(JIRA.projects())
print(projects)