{"id":16744855,"url":"https://github.com/open-risk/concentrationmetrics","last_synced_at":"2026-02-27T01:32:53.577Z","repository":{"id":29418917,"uuid":"32954566","full_name":"open-risk/concentrationMetrics","owner":"open-risk","description":"A python library for the computation of various concentration, inequality and diversity indices","archived":false,"fork":false,"pushed_at":"2025-01-30T21:25:32.000Z","size":783,"stargazers_count":44,"open_issues_count":6,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-31T06:43:32.551Z","etag":null,"topics":["concentration","concentration-index","diversity-measurement","gini-index","inequality","python","shannon"],"latest_commit_sha":null,"homepage":"https://www.openriskmanual.org/wiki/Concentration_Index","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-risk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["open-risk"]}},"created_at":"2015-03-26T22:10:12.000Z","updated_at":"2025-07-28T14:06:54.000Z","dependencies_parsed_at":"2024-02-24T20:29:20.928Z","dependency_job_id":"560b3433-04c0-4c04-b07d-f14cbcff004a","html_url":"https://github.com/open-risk/concentrationMetrics","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":"0.17142857142857137","last_synced_commit":"1178d91f4d875a1f62e8735d56a0ce33c3bde63e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/open-risk/concentrationMetrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-risk%2FconcentrationMetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-risk%2FconcentrationMetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-risk%2FconcentrationMetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-risk%2FconcentrationMetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-risk","download_url":"https://codeload.github.com/open-risk/concentrationMetrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-risk%2FconcentrationMetrics/sbom","scorecard":{"id":708500,"data":{"date":"2025-08-11","repo":{"name":"github.com/open-risk/concentrationMetrics","commit":"fb944a4c6f7ada978ed90fcce7917bc105097564"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T07:27:16.958Z","repository_id":29418917,"created_at":"2025-08-22T07:27:16.959Z","updated_at":"2025-08-22T07:27:16.959Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486785,"owners_count":25995048,"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-10-05T02:00:06.059Z","response_time":54,"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":["concentration","concentration-index","diversity-measurement","gini-index","inequality","python","shannon"],"created_at":"2024-10-13T01:44:16.667Z","updated_at":"2025-10-05T17:28:35.562Z","avatar_url":"https://github.com/open-risk.png","language":"Python","funding_links":["https://github.com/sponsors/open-risk"],"categories":[],"sub_categories":[],"readme":"[![Documentation Status](https://readthedocs.org/projects/concentrationmetrics/badge/?version=latest)](https://concentrationMetrics.readthedocs.io/en/latest/?badge=latest)\n![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)\n[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Naereen/StrapDown.js/blob/master/LICENSE)\n[![Percentage of issues still open](http://isitmaintained.com/badge/open/Naereen/badges.svg)](http://isitmaintained.com/project/Naereen/badges \"Percentage of issues still open\")\n\n\nIntro\n==========================\n\nconcentrationMetrics is a python library for the computation of various concentration, diversification and inequality indices. The library aims to implement the computation of all well known indexes of inequality and concentration along with confidence intervals. \n\nYou can use concentrationMetrics to:\n\n- Access an exhaustive collection of concentration, inequality and diversity indexes and metrics\n- Perform file input/output in both json and csv formats\n- Compute indexes with confidence intervals via bootstraping\n- Visualize using matplotlib\n\nKey Information\n================\n\n* Author: [Open Risk](\u003chttps://www.openriskmanagement.com\u003e)\n* License: MIT\n* Mathematical Documentation: [Open Risk Manual](\u003chttps://www.openriskmanual.org/wiki/Category:Concentration_Index\u003e)\n* Code Documentation: [Read The Docs](https://concentrationmetrics.readthedocs.io/en/latest/index.html)\n* Development website: [Github](https://github.com/open-risk/concentrationMetrics)\n* Discussions: [Open Risk Commons](https://www.openriskcommons.org/c/open-source/concentrationmetrics/17)\n\n**NB: concentrationMetrics is still in active development. If you encounter issues please raise them in our GitHub repository**\n\nList of Implemented Indexes\n===============================\nAn overview of the implemented metrics (indexes) and their relationships is available at the [Open Risk Manual](https://www.openriskmanual.org/wiki/Concentration_Index)\n\nThe below list provides more specific documentation URL's for each one of the implement indexes:\n\n* [Atkinson Index](https://www.openriskmanual.org/wiki/Atkinson_Index)\n* [Berger-Parker Index](https://www.openriskmanual.org/wiki/Berger-Parker_Index)\n* [Concentration Ratio](https://www.openriskmanual.org/wiki/Concentration_Ratio)\n* [Ellison-Glaeser Index](https://www.openriskmanual.org/wiki/Ellison-Glaeser_Index)\n* [Gini Index](https://www.openriskmanual.org/wiki/Gini_Index)\n* [Theil Index](https://www.openriskmanual.org/wiki/Theil_Index)\n* [Hannah-Kay Index](https://www.openriskmanual.org/wiki/Hannah_Kay_Index)\n* [Hoover Index](https://www.openriskmanual.org/wiki/Hoover_Index)\n* [Herfindahl-Hirschman Index](https://www.openriskmanual.org/wiki/Herfindahl-Hirschman_Index) and related indexes such as Simpson and Inverse Simpson\n* [Shannon Index](https://www.openriskmanual.org/wiki/Shannon_Index)\n* [Generalized Entropy Index (Renyi)](https://www.openriskmanual.org/wiki/Generalized_Entropy_Index)\n* [Kolm Index](https://www.openriskmanual.org/wiki/Kolm_Index)\n\nSupport and Training\n=========================\nThe Open Risk Academy has free courses demonstrating the use of the library: [Open Risk Academy](https://www.openriskacademy.com)\n\nExamples\n========\nComparing two indexes across a range of input portfolio data \n\n![image](examples/hhi_vs_gini.png)\n\nCalculating industrial and geographic concentrations\n\n![image](examples/Portfolio_Map_View.png)\n\n\nContributions\n=============\n* Check the [TODO list](docs/source/todo.rst) for immediate TODO items\n* Check the [Roadmap](docs/source/roadmap.rst) for the bigger picture\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-risk%2Fconcentrationmetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-risk%2Fconcentrationmetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-risk%2Fconcentrationmetrics/lists"}