Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

rominf/aiojira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aiojira - asynchronous Jira Python library

License PyPI - Python Version PyPI

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:

  1. All functions are converted to coroutines, that means you have to add await keyword before all function calls.
  2. To asynchronously create classes from aiojira use static method create.

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)

Releases

No releases published

Packages

No packages published

Languages