Skip to main content

Flask-JIRA-Helper

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

Build Status Coverage Status Latest Version Downloads Download format License

Supported Platforms

  • OSX and Linux.

  • Python 2.6, 2.7, 3.3, 3.4

  • Flask 0.10.1

  • JIRA 0.21

Probably works on other versions too.

Quickstart

Install:

pip install Flask-JIRA-Helper

Example:

# example.py
from flask import Flask
from flask.ext.jira import JIRA

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

print jira.projects()

Factory Example

# extensions.py
from flask.ext.jira import JIRA

jira = JIRA()
# application.py
from flask import Flask
from extensions import jira

def create_app():
    app = Flask(__name__)
    app.config['JIRA_SERVER'] = 'https://jira.mycompany.com'
    app.config['JIRA_USER'] = 'service'
    app.config['JIRA_PASSWORD'] = 'SuperSecretP@ssw0rd'
    jira.init_app(app)
    return app
# manage.py
from application import create_app

app = create_app()
app.run()

Configuration

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.

  • JIRA_IGNORE_INITIAL_CONNECTION_FAILURE – Ignore ConnectionError during init_app() for testing/development.

Changelog

0.2.0

  • Added JIRA_IGNORE_INITIAL_CONNECTION_FAILURE option.

  • Added Python 2.6 and 3.x support.

0.1.2

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

0.1.1

  • Clearer error message when no credentials are specified.

0.1.0

  • Initial release.

Metadata

Release files for Flask-JIRA-Helper 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-JIRA-Helper 0.2.0
File Size Uploaded Provenance Actions
Flask-JIRA-Helper-0.2.0.tar.gz 5.7 kB Without provenance Details for Flask-JIRA-Helper-0.2.0.tar.gz

Release files / Flask-JIRA-Helper-0.2.0.tar.gz

Download URL Flask-JIRA-Helper-0.2.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5867ec3857ce653161873a506b6f61b23f9be66ea5571743d1cd4d0c18023bf5
BLAKE2b-256 checksum
How to use checksums
3a9fa911483035187abce807fbcbd6758228660aae33b689b539fc74dbc37918
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-JIRA-Helper 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page