Skip to main content

Analyze team performance for better predictability

Project description

Roadmap

Roadmap is a Python package that helps to analyze and visualize team's agile software development process. It provides insights into delivery performance and aims at creating more realistic roadmaps by leveraging the team historical performance.

Installation

Install from PyPI

$ pip install rmp

Usage examples

Configure backend and load data from Jira

from rmp.backend import Backend
from rmp.jira import JiraCloudConnector
import os

# For data storage, configure SQLAlchemy compatible URL
os.environ['SQLALCHEMY_URL'] = 'sqlite:///my_db.sqlite'

# Create instance of backend
backend = Backend()

# Load data
backend.add_connector(
    JiraCloudConnector,
    name='Jira Loader',
    domain='example',
    username='john.doe@example.com',
    api_token='API_TOKEN',
    jql = 'project = SPACE',
    board_id = 42
)
backend.load_data()

Analyze Flow Metrics

from sqlalchemy import create_engine
from rmp.flow_metrics import FlowMetrics, Workflow, FilterKwArgs
from datetime import datetime

# Create engine for data access
engine = create_engine(f"sqlite:///my_db.sqlite", echo=False)

# Configure workflow stages
workflow = Workflow(
    not_started=['To Do'],
    in_progress=['In Progress', 'Code review', 'Testing'],
    finished=['Done', 'Cancelled'],
)

# Define filters
filter = FilterKwArgs(
    exclude_item_types={"Bug"},
    include_hierarchy_levels={0},
    exclude_ranges=[
        DateTimeRange("2024-12-23", "2025-01-05"), # Christmas period, team offline
        DateTimeRange("2025-04-14", "2025-04-21"), # Holy Week, most of the team away
    ]
)

# Create instance of FlowMetrics
fm = FlowMetrics(engine, workflow)

# Plot cycle time scatter chart
fm.plot_cycle_time_scatter(**filter)

# Plot cycle time histogram
fm.plot_cycle_time_histogram(**filter)

# Plot aging work in progress chart
fm.plot_aging_wip(**filter)

# Plot throughput run chart
fm.plot_throughput_run_chart(**filter)

# Plot cumulative flow diagram
fm.plot_cfd(**filter)

# Find dates and probabilities to deliver 90 items using Monte Carlo simulation
fm.plot_monte_carlo_when_hist(runs=10000, item_count=90, **filter)

# Find how many items can be delivered by date with their probabilities using Monte Carlo simulation
target_date = datetime.now() + pd.Timedelta(days=30)
fm.plot_monte_carlo_how_many_hist(runs=10000, target_date=target_date, **filter)

# Output prioritised backlog with 85% confidence forecast of delivery dates  
fm.df_backlog_items(mc_when=True, mc_when_runs=1000, mc_when_percentile=85, **filter)

Development

Select Python version using pyenv

pyenv local 3.11.8

Install Poetry dependencies

poetry install

Activate virtual environment

eval $(poetry env activate)

Run tests

pytest

Check code style and format

ruff check
ruff format

Run static type checker

mypy

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

rmp-0.0.0.post20250424074757.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

rmp-0.0.0.post20250424074757-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file rmp-0.0.0.post20250424074757.tar.gz.

File metadata

  • Download URL: rmp-0.0.0.post20250424074757.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.12 Linux/6.11.0-1012-azure

File hashes

Hashes for rmp-0.0.0.post20250424074757.tar.gz
Algorithm Hash digest
SHA256 e73651fa95886cad3cbbceee757c9c7f469e8706230a7abba2d2177e44aad14c
MD5 984c239ffe9a9760bb0fdb78323051b6
BLAKE2b-256 a4ab944abbcb11c633e338313bdb500424dba53d355dd5acbcfed990326dd0a0

See more details on using hashes here.

File details

Details for the file rmp-0.0.0.post20250424074757-py3-none-any.whl.

File metadata

File hashes

Hashes for rmp-0.0.0.post20250424074757-py3-none-any.whl
Algorithm Hash digest
SHA256 adb950d746a3bb178279d19176fda2a9db66c39e6714536046e6336c021ec3b5
MD5 6d75415f84eb8baa202b7d898336e86e
BLAKE2b-256 eb726cf7ccce21940c7202593da7ee09d788980201ed6dde43a77ce2818d90b4

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