{"id":13557555,"url":"https://github.com/erikw/taiga-stats","last_synced_at":"2025-07-31T04:39:56.196Z","repository":{"id":2729123,"uuid":"47283228","full_name":"erikw/taiga-stats","owner":"erikw","description":"Generate statistics from Taiga and produce burnup diagrams, CFDs, dependency graphs and more.","archived":false,"fork":false,"pushed_at":"2025-07-01T12:45:46.000Z","size":761,"stargazers_count":43,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T15:43:32.822Z","etag":null,"topics":["cfd","cumulativeflowdiagram","dependency-graph","diagram","hacktoberfest","kanban","kanban-board","scrum","scrum-board","statistics","taiga","tool","user-stories"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erikw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-12-02T19:26:06.000Z","updated_at":"2025-07-01T12:45:43.000Z","dependencies_parsed_at":"2023-11-12T12:38:35.070Z","dependency_job_id":"a3dff355-8e80-4693-8537-f8d0b8c5b45b","html_url":"https://github.com/erikw/taiga-stats","commit_stats":{"total_commits":216,"total_committers":4,"mean_commits":54.0,"dds":0.1527777777777778,"last_synced_commit":"0ab93073b1aba5f32648f5bef0342bbacf9935f5"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/erikw/taiga-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikw%2Ftaiga-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikw%2Ftaiga-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikw%2Ftaiga-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikw%2Ftaiga-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikw","download_url":"https://codeload.github.com/erikw/taiga-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikw%2Ftaiga-stats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267988489,"owners_count":24176996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cfd","cumulativeflowdiagram","dependency-graph","diagram","hacktoberfest","kanban","kanban-board","scrum","scrum-board","statistics","taiga","tool","user-stories"],"created_at":"2024-08-01T12:04:25.084Z","updated_at":"2025-07-31T04:39:56.177Z","avatar_url":"https://github.com/erikw.png","language":"Python","funding_links":[],"categories":["Python","hacktoberfest"],"sub_categories":[],"readme":"\u003c!--\n|￣￣￣￣￣￣￣￣￣￣￣|\n| Don't edit 　　    |\n| README.md directly!|\n|＿＿＿＿＿＿＿＿＿＿＿|\n(__/) ||\n(•ㅅ•) ||\n/ 　 づ\nIt will be overwritten by bin/gen_docs.sh.\n\nInstead:\n1. edit README.md.in\n2. run $ bin/gen_docs.sh\n--\u003e\n# Taiga Stats - Your Taiga Statistics Tool [![Post on X](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://x.com/intent/tweet?text=Scrum%20and%20Kanban%20masters;%20generate%20statistics%20from%20your%20Taiga.io%20projects%20with%20this%20python%20tool\u0026url=https://github.com/erikw/taiga-stats\u0026via=erik_westrup\u0026hashtags=taiga,scrum,kanban,statistics)\n[![PyPI version](https://badge.fury.io/py/taiga-stats.svg)](https://badge.fury.io/py/taiga-stats)\n[![Downloads](https://pepy.tech/badge/taiga-stats)](https://pepy.tech/project/taiga-stats)\n[![Documentation Status](https://readthedocs.org/projects/taiga-stats/badge/?version=latest)](https://taiga-stats.readthedocs.io/)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/taiga-stats)](#)\n[![Travis Build Status](https://img.shields.io/travis/com/erikw/taiga-stats/main?logo=travis)](https://app.travis-ci.com/github/erikw/taiga-stats)\n[![Lint](https://github.com/erikw/taiga-stats/actions/workflows/linter.yml/badge.svg)](https://github.com/erikw/taiga-stats/actions/workflows/linter.yml)\n[![SLOC](https://sloc.xyz/github/erikw/taiga-stats?lower=true)](#)\n[![Number of programming languages used](https://img.shields.io/github/languages/count/erikw/taiga-stats)](#)\n[![Top programming languages used](https://img.shields.io/github/languages/top/erikw/taiga-stats)](#)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html)\n[![License](https://img.shields.io/pypi/l/taiga-stats)](https://github.com/erikw/taiga-stats/blob/main/LICENSE)\n[![OSS Lifecycle](https://img.shields.io/osslifecycle/erikw/taiga-stats)](https://github.com/Netflix/osstracker)\n[![Latest tag](https://img.shields.io/github/v/tag/erikw/taiga-stats)](https://github.com/erikw/taiga-stats/tags)\n\n\u003cp align=\"center\"\u003e\n\u003c!-- Ref: https://dev.to/azure/adding-a-github-codespace-button-to-your-readme-5f6l --\u003e\n\u003ca href=\"https://github.com/codespaces/new?hide_repo_select=true\u0026ref=main\u0026repo=47283228\" title=\"Open in GitHub Codespaces\" \u003e\u003cimg alt=\"Open in GitHub Codespaces\" src=\"https://github.com/codespaces/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis is a script for all you Scrum||Kanban masters out there who use Taiga and are interested in visualizing progress and generate some automated statistics and graphs.\n\n[Taiga](https://taiga.io/) is an Open Source virtual Scrum and Kanban board that is popular for managing projects and work. We use a physical whiteboard at work but I mirror the status of stories in Taiga so that I can collect some statistics and generate diagrams and graphs using this tool I wrote.\n\n# Features\n```console\n$ taiga-stats --help\nusage: taiga-stats [-h] [-v] [--url URL] [--auth-token AUTH_TOKEN]\n                   {config_template,list_projects,list_us_statuses,burnup,store_daily,points_sum,cfd,deps_dot_nodes,deps_dot}\n                   ...\n\nTaiga statistic tool. Default values for many options can be set config file;\nsee the command 'config_template'.\n\npositional arguments:\n  {config_template,list_projects,list_us_statuses,burnup,store_daily,points_sum,cfd,deps_dot_nodes,deps_dot}\n                        Commands. Run $(taiga-stats \u003ccommand\u003e -h) for more\n                        info about a command.\n    config_template     Generate a template configuration file.\n    list_projects       List all found project IDs and names on the server\n                        that you have access to read.\n    list_us_statuses    List all the ID and names of User Story statuses.\n    burnup              Print burn(up|down) statistics. Typically used for\n                        entering in an Excel sheet or such that plots a\n                        burnup.\n    store_daily         Store the current state of a project on file so that\n                        the CFD command can generate a diagram with this data.\n    points_sum          Print out the sum of points in User Story statuses.\n    cfd                 Generate a Cumulative Flow Diagram from stored data.\n    deps_dot_nodes      Print User Story nodes in .dot file format.\n    deps_dot            Print US in .dot file format with dependencies too!\n                        Create a custom attribute for User Stories named\n                        'Depends On' by going to Settings\u003eAttributes\u003eCustom\n                        Fields. Then go to a User Story and put in a comma\n                        separated list of stories that this story depends on\n                        e.g. '#123,#456'.\n\noptions:\n  -h, --help            show this help message and exit\n  -v, --version         show program's version number and exit\n  --url URL             URL to Taiga server.\n  --auth-token AUTH_TOKEN\n                        Authentication token. Instructions on how to get one\n                        is found at\n                        https://docs.taiga.io/api.html#_authentication\n\nSupport: please go to https://github.com/erikw/taiga-stats/issues\n```\n\n# Terminology\n* *US* - User Story\n* *CFD* - Cumulative Flow Diagram\n\n## Cumulative Flow Diagram\nFrom a [CFD](http://brodzinski.com/2013/07/cumulative-flow-diagram.html) a lot of interesting insights about your team's progress [can be found](http://paulklipp.com/images/Interpreting_a_Cumulative_Flow_Diagram.jpg). However I'm not found of repetitive work like counting and entering numbers in an Excel sheet. This had to be automated! Therefore I deiced to write this script to save data on a daily basis with a cron job and a function for generating this diagram. This diagram can the be put on a TV visible in the hallways.\n\n\nThis is an example diagram generated from [mock data](https://github.com/erikw/taiga-stats/tree/main/sample_data/cfd_example.dat):\n\n![Example CFD](https://raw.githubusercontent.com/erikw/taiga-stats/main/img/cfd_example.png)\n\nTextual annotations can be put in the plot by manually editing the `.dat file`.\n\n\nAlso a target date for the project deadline can be specified. Then a line will be drawn showing the ideal work pace towards this date, as seen below where the target finish date is in week 46.\n\n![Example CFD with ideal pace](https://raw.githubusercontent.com/erikw/taiga-stats/main/img/cfd_example_ideal_pace.png)\n\n\nTo save the data and generate the diagram each working day I have this cronjob:\n\n```console\n$ crontab -l | grep taiga\n0 18 * * 1-5            $HOME/bin/taiga-stats-cron.sh\n```\n\nand the script `taiga-stats-cron.sh`:\n\n```bash\n#!/usr/bin/env sh\n\ntaiga-stats store_daily --tag some_feature_tag\ntaiga-stats cfd --tag some_feature_tag\n```\n\n## User Story Dependency Graph\nSome stories requires other to be completed before they can be started. I thought it would be handy if you could keep track of these dependencies in Taiga but simply writing for each US a list of other stories that this story depends on. Then from this information a [.dot file](https://github.com/erikw/taiga-stats/tree/main/sample_data/dependencies_example.dot) can be generated that should how you user stories depends on each other. This graph is very useful for work planning i.e. what to start with and how much parallelization is possible and at what stages.\n\n![US Dependency Graph](https://raw.githubusercontent.com/erikw/taiga-stats/main/img/dependencies_example.png)\n\nThe stories that are marked as Done in Taiga have a green color in the graph.\n\n\n### How to set up the dependency feature\nFirst create a new custom filed in taiga named `Depends On` under Settings \u003e Attributes \u003e Custom Fields:\n\n![Custom Field](https://raw.githubusercontent.com/erikw/taiga-stats/main/img/taiga_custom_field.png)\n\n\nThen go to your User Stories and enter some dependencies as demonstrated below.\n\n![US dependency](https://raw.githubusercontent.com/erikw/taiga-stats/main/img/us_depends_on.png)\n\n\nThen run the script and generate a PNG file.\n\n\n```shell\ntaiga-stats deps_dot\ndot -T png -o ./dependencies.png ./dependencies.dot\n```\n\n\n# Setup\n\n## Installation\nMake sure to use a supported python version. See the key `python` in the section `tool.poetry.dependencies` at [pyproject.toml](https://github.com/erikw/taiga-stats/blob/main/pyproject.toml).\n\n```shell\npip install taiga-stats\ntaiga-stats -h\n```\n\nIf you use [pipx](https://pypi.org/project/pipx/) to install, you must specify a supported and locally available python version like:\n\n```shell\npipx install --python python3.9 taiga-stats\n```\n\nTo use this tool, you need to supply\n* `--url` to your taiga server e.g. `https://api.taiga.io/`\n* `--auth-token` that you need to obtain according to the [official instructions](https://docs.taiga.io/api.html#_authentication).\n\nIt's recommended to put these 2 values in the below described `taiga-stats.conf` file for easier usage of this tool!\n\n## Config file\nIt is tedious to have to specify the server URL and the authentication token every time. Also you typically work with some project at a time and would like to have default values for the project to use and maybe which tag to filter on. You can generate a configuration file to set these default values.\n\n```shell\ntaiga-stats config_template\nmv ./taiga.conf.template ~/.taiga-stats.conf\nvi ~/.taiga-stats.conf\n```\n\n\n# Development\n* Make sure to `$ poetry shell` before using tools like pyright LSP, so that it can find the installed dependency modules\n* Reference for how to structure a python project: https://realpython.com/pypi-publish-python-package/\n\n## Setup from Git\n* Clone this git\n```shell\ngit clone https://github.com/erikw/taiga-stats.git \u0026\u0026 cd $(basename \"$_\" .git)\n```\n* Install Poetry\n```shell\npip install poetry\n```\n\n* Install project dependencies\n```shell\npoetry install\n```\n* Now taiga-stats should work!\n```shell\npoetry run taiga-stats -h\n# or\nbin/taiga-stats.sh\n```\n* To install locally:\n```shell\npoetry build\npip install dist/taiga_stats-*.whl\n```\n\n## Linting and Formatting\n* Linting: Consider isort, flake8 and pylint as replaced by ruff.\n* Formatting: Consider black as replaced by ruff.\n\n```shell\npoetry run ruff check\npoetry run ruff format\n\npoetry run isort taiga-stats/\npoetry run pylint taiga-stats/\npoetry run flake8 taiga-stats/\npoetry run black taiga-stats/\n```\n\n## Documentation generation\n```shell\npoetry run mkdocs serve\npoetry run mkdocs build\n```\n\nbut `bin/gen_docs.sh` will take care of all that plus more!\n\n# Releasing\n```shell\nbin/gen_docs.sh\nvi CHANGELOG.md\npoetry version minor \u0026\u0026 ver=\"v$(poetry version -s)\"\ngit commit -am \"Bump version to $ver\" \u0026\u0026 git tag $ver \u0026\u0026 git push --atomic origin main $ver\npoetry publish --build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikw%2Ftaiga-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikw%2Ftaiga-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikw%2Ftaiga-stats/lists"}