{"id":35184179,"url":"https://github.com/erlete/scoretree","last_synced_at":"2026-05-21T19:33:13.101Z","repository":{"id":207350517,"uuid":"718904008","full_name":"erlete/scoretree","owner":"erlete","description":"Easy to use, multi-level grade weighting system","archived":false,"fork":false,"pushed_at":"2023-12-21T14:13:08.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"stable","last_synced_at":"2025-09-29T13:23:46.680Z","etag":null,"topics":["grade","grading-system","score","scoreboard","tree"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/scoretree","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erlete.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-11-15T02:51:10.000Z","updated_at":"2024-05-31T19:22:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"66006bad-1da8-4077-a3ac-b2669573d1da","html_url":"https://github.com/erlete/scoretree","commit_stats":{"total_commits":74,"total_committers":1,"mean_commits":74.0,"dds":0.0,"last_synced_commit":"aa3c572d933728c68d9f3b0799f339a40064fb9f"},"previous_names":["erlete/scoretree"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/erlete/scoretree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlete%2Fscoretree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlete%2Fscoretree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlete%2Fscoretree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlete%2Fscoretree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erlete","download_url":"https://codeload.github.com/erlete/scoretree/tar.gz/refs/heads/stable","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlete%2Fscoretree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33311824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"ssl_error","status_checked_at":"2026-05-21T12:22:11.673Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["grade","grading-system","score","scoreboard","tree"],"created_at":"2025-12-29T04:53:00.738Z","updated_at":"2026-05-21T19:33:13.096Z","avatar_url":"https://github.com/erlete.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScoreTree\n\n[![PyPI Release](https://github.com/erlete/scoretree/actions/workflows/python-publish.yml/badge.svg)](https://github.com/erlete/scoretree/actions/workflows/python-publish.yml) [![Package Build and Test](https://github.com/erlete/scoretree/actions/workflows/python-tests.yml/badge.svg)](https://github.com/erlete/scoretree/actions/workflows/python-tests.yml) [![Coverage Status](https://coveralls.io/repos/github/erlete/scoretree/badge.svg?branch=stable)](https://coveralls.io/github/erlete/scoretree?branch=stable) ![Python Version](https://img.shields.io/badge/Python%20Version-3.10-blue)\n\n**ScoreTree is an *easy to use*, *multi-level* grade weighting system that serves as excellent tool for cascade grading methods.**\n\n## Installation\n\nThis package [has been released through PyPI](https://pypi.org/project/scoretree/), so it can be installed using Python's `pip` module:\n\n```shell\npython -m pip install scoretree\n```\n\n\u003e [!NOTE]\n\u003e The command above asumes that your Python interpreter is aliased to `python` and references a version equal to or greater than 3.10\n\nAlternatively, it is also possible to clone this repository and install the package via `pip` and/or `build`.\n\n## Usage\n\nHere is an usage example. Feel free to take a look at [other examples](src/examples/) in the corresponding section of the repository.\n\n```python\nfrom scoretree import Score, ScoreArea, ScoreTree\n\n# Define a score tree:\nst = ScoreTree([\n    # Add a list of areas to be evaluated:\n    ScoreArea(name=f\"Simulation\", weight=1, items=[\n        # Each area can contain other areas and/or scores:\n        ScoreArea(\"Stop maneuver\", .2, [\n            # Scores are the minimal grading unit:\n            Score(\n                name=\"Distance to end\",\n                weight=.8,\n                score_range=(0, 10),\n                value=9.8848,\n                inverse=True\n            ),\n            Score(\"Deceleration intensity\", .2, (0, 20), value=185555)\n        ]),\n        # Different instance creation syntax:\n        ScoreArea(\"Track performance\", .8, [\n            Score(\"Speed\", .3, (0, 20), 5),\n            ScoreArea(\"Efficiency\", .7, [\n                Score(\"Track time\", .5, (0, 40), 30),\n                Score(\"Track distance\", .5, (0, 200), value=10, inverse=True)\n            ])\n        ])\n    ])\n], colorized=True)  # Enable or disable colorized output.\n\nprint(f\"Total simulation score: {st.score}\")\n```\n\nThis would be the colorized output for the code snippet above:\n\n![sample_output](https://github.com/erlete/scoretree/assets/76848729/260d4e88-160a-4b4f-bcc4-568691c0bbca)\n\n## Contributing\n\nSince this is a very small project that can be easily improved and can expand its functionality way further down the development process, any contributions, suggestions or bug reports are more than welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlete%2Fscoretree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferlete%2Fscoretree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlete%2Fscoretree/lists"}