Skip to main content

JIRA support for Flask without breaking PyCharm inspections.

Project description

A simple JIRA extension for Flask. Supports basic authentication and OAuth.

OAuth is currently untested.

Supported Platforms

  • OSX and Linux.

  • Python 2.7

  • Flask 0.10.1

  • JIRA 0.21

Probably works on other versions too.



pip install Flask-JIRA-Helper


from flask import Flask
from flask.ext.jira import JIRA

app = Flask(__name__)
app.config['JIRA_SERVER'] = ''
app.config['JIRA_USER'] = 'jdoe'
app.config['JIRA_PASSWORD'] = 'SuperSecretP@ssw0rd'
jira = JIRA(app)

print jira.projects()

Factory Example

from flask.ext.jira import JIRA

jira = JIRA()
from flask import Flask
from extensions import jira

def create_app():
    app = Flask(__name__)
    app.config['JIRA_SERVER'] = ''
    app.config['JIRA_USER'] = 'service'
    app.config['JIRA_PASSWORD'] = 'SuperSecretP@ssw0rd'
    return app
from application import create_app

app = create_app()


Flask-JIRA-Helper subclasses jira.client.JIRA and adds the init_app() method for delayed initialization (for applications that instantiate extensions in a separate file, but run init_app() in the same file Flask() was instantiated).

The following config settings are searched for in the Flask application’s configuration dictionary:

  • JIRA_SERVER – URL to JIRA server.

  • JIRA_USER – HTTP Basic authentication user name.

  • JIRA_PASSWORD – HTTP Basic authentication password.

  • JIRA_TOKEN – OAuth authentication access token.

  • JIRA_SECRET – OAuth authentication access token secret.

  • JIRA_CONSUMER – OAuth authentication consumer key.

  • JIRA_CERT – OAuth authentication key certificate data.



  • Fixed AttributeError when JIRA is instantiated but init_app() isn’t called.


  • Clearer error message when no credentials are specified.


  • Initial release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-JIRA-Helper-0.1.2.tar.gz (4.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page