Skip to main content

Build and Test PyPI Downloads

DORA Lead Time Metric

A tool to generate lead time charts and outlier reports by connecting data from Jira and GitHub.

Overview

Lead Time for Changes is one of the four key DORA (DevOps Research and Assessment) metrics that measure software delivery performance. It measures the time it takes from when code is committed to when it is successfully running in production. A shorter lead time indicates an organization's ability to respond quickly to customer needs and fix problems rapidly.

This Python package calculates lead time by connecting data from Jira and GitHub. The calculation involves going from Projects → Releases → Stories → Pull Requests → Commits, calculating the lead time for each pull request, and averaging those over a given time period.

Requirements

  • Python 3.13 or higher
  • OpenAI API key and other parameters (set in your .env file)

Installation

This project uses Poetry for dependency management.

  1. Install Poetry by following the instructions in the official documentation.

    Quick installation methods:

    # For Linux, macOS, Windows (WSL)
    curl -sSL https://install.python-poetry.org | python3 -
    
    # For Windows PowerShell
    (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
    
  2. Install Project Dependencies

    # Clone the repository
    git clone https://github.com/sualeh/dora-lead-time-metric.git
    cd dora-lead-time-metric
    
  3. Install dependencies using Poetry

    poetry install --extras "dev"
    poetry show --tree
    

Configuration

Create an ".env" file in the project root based on ".env.example", and similarly create an ".env.params" file based on ".env.params.example". For a detailed walkthrough of required variables and examples, see calculate-dora-lead-time-metric.md.

Usage

  1. Create releases database
poetry run python -m dora_lead_time.main --build
  1. Generate lead time charts
poetry run python -m dora_lead_time.main --charts
  1. Generate outlier reports
poetry run python -m dora_lead_time.main --reports

Development and Testing

  1. Install dependencies, as above.

  2. Run all tests:

    poetry run pytest
    

Docker Compose Usage

You can also use Docker Compose for easier management of the dora-lead-time container:

  1. Clone the project, as described above.

  2. Configure the ".env" and ".env.params" files as described above.

  3. Run the application using Docker Compose:

    # To build a releases database
    docker-compose run dora-lead-time --build
    
    # To generate lead time charts
    docker-compose run dora-lead-time --charts
    
    # To generate outlier reports
    docker-compose run dora-lead-time --reports
    

This approach simplifies volume mounting and environment variable management, especially when working with the tool regularly.

Metadata

Release files for dora-lead-time-metric 2.3.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 dora-lead-time-metric 2.3.0
File Size Uploaded
dora_lead_time_metric-2.3.0.tar.gz 31.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dora-lead-time-metric 2.3.0
File Interpreter ABI Platform
dora_lead_time_metric-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 73.3 kB

Release files / dora_lead_time_metric-2.3.0.tar.gz

Download URL dora_lead_time_metric-2.3.0.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
92ab8e7950b06139f72e3d0ab8fe225b610f96bfbc778598c56501da7adcdb38
BLAKE2b-256 checksum
How to use checksums
1cc555b030959a16b44ded88a4a1a65cd4fd336235cfa7a4eafe815e38303b9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

Release files / dora_lead_time_metric-2.3.0-py3-none-any.whl

Download URL dora_lead_time_metric-2.3.0-py3-none-any.whl
Size 41.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36e9e465ecad37306458fa50f2ace0724fe008449ad91e488c5d2ecd44da9cff
BLAKE2b-256 checksum
How to use checksums
27dae6403008e18ad56c1375fd82858a3798e2b01f89d8e8d701e3b3a7aa348a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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