Skip to main content

Tools for working with the python jira client.

Project description

herakles jira tool

Tools for working with the Jira API.

Usage

Initialize

from herakles import JiraAuthBasic, JiraWrapper
auth = JiraAuthBasic("username", "password")
jira = JiraWrapper.connect("https://server.jira.com", auth)

# optional add map of custom fields.
jira.add_custom_fields_from_file("custom_fields.yml")

Use jql builder to programmatically build jql queries

See how many tickets a user resolved in the past number days:

query = {
            "and": [
                {"assignee": {"=": team_member}},
                {"resolved": {">": f"-{days}d"}},
                {"project": {"not in": ["'Unrelated Project'"]}},
            ]
        }

Contributors Guide

Testing

Testing is done via pytest.

$ pip install -r requirements.txt
$ pytest

To get code coverage information, you can run pytest directly.

$ pip install -r requirements.txt
$ pytest --cov=src --cov-report=html

This will generate an html coverage report in htmlcov/ directory.

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

herakles-0.1.7.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herakles-0.1.7-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file herakles-0.1.7.tar.gz.

File metadata

  • Download URL: herakles-0.1.7.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/5.0.0-1027-azure

File hashes

Hashes for herakles-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4f1660a05f533a129b14fe65ce2781dfe781085d6cb0bb1985635c0eafd244a6
MD5 6498a9f307f0e98721faae4c3f343e85
BLAKE2b-256 644aadf43e4b72d3ab3d58fde65d4a586baa6b1bf0c29c87e72741e08b6a8117

See more details on using hashes here.

File details

Details for the file herakles-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: herakles-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.7.5 Linux/5.0.0-1027-azure

File hashes

Hashes for herakles-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 08ee2dd5cd93e82c3b23d220220bb5ec4ad772b4e44d47c923af404da83cce06
MD5 823ccdbb2bf5ea50f088036d42b448d4
BLAKE2b-256 c83040fce083e75390f15896f3b4cfdf637a95c5fce71aacf69fb31e0e598207

See more details on using hashes here.

Supported by

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