{"id":20603478,"url":"https://github.com/danpoynor/python-basketball-team-stats-tool","last_synced_at":"2026-06-06T15:31:24.418Z","repository":{"id":116654829,"uuid":"527648698","full_name":"danpoynor/python-basketball-team-stats-tool","owner":"danpoynor","description":"Demo console-based basketball team statistics app that divides a group of players into teams and presents statistics about each team.","archived":false,"fork":false,"pushed_at":"2022-08-22T17:05:24.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T02:11:50.496Z","etag":null,"topics":["basketball-stats","console-application","python3","statistics","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danpoynor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-08-22T16:38:20.000Z","updated_at":"2022-08-22T16:47:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"4410ab4e-fca8-424b-a2ee-d7b178283151","html_url":"https://github.com/danpoynor/python-basketball-team-stats-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-team-stats-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-team-stats-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-team-stats-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-team-stats-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danpoynor","download_url":"https://codeload.github.com/danpoynor/python-basketball-team-stats-tool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242249025,"owners_count":20096778,"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","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":["basketball-stats","console-application","python3","statistics","unit-testing"],"created_at":"2024-11-16T09:17:28.864Z","updated_at":"2026-06-06T15:31:24.412Z","avatar_url":"https://github.com/danpoynor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Basketball Team Stats Tool\n\nDemo console-based basketball team statistics app that divides a group of players into teams and presents statistics about each team.\n\nFeatures\n\n- Uses various Python data types to store and manipulate data into organized team structures.\n- Cleans data from `constants.py` without changing the original data.\n   - Converts string data into integer or float values.\n   - Converts string data into Boolean values.\n   - Converts string data into lists of strings.\n- Organizes player data evenly into teams ensuring each team has the same number of experienced and inexperienced players.\n- Provides Dunder Main usage examples in `app.py` entry point and `dm.py` module.\n- Presents data in a nice readable format using extra spaces and line breaks ('\\n') to break up lines.\n- Team stats are saved to each teams data structure.\n- Stats presentation includes players sorted by height (shortest to tallest).\n- User is re-prompted with the main menu until they decide to \"Quit the program\".\n\n## Run the app\n\n```bash\npython3 app.py\n```\n\nNOTE: Python 3.10 was used to develop and test this app.\n\n---\n\n## Run Unit Tests\n\nSome basic unit tests are included to test the `dm.py` module.\n\n\u003cdetails\u003e\n  \u003csummary\u003eExpand/Collapse\u003c/summary\u003e\nTo run the tests, use something like:\n\n\n```bash\npython3 -m unittest -v dm.py\n```\n\nand you should see some test result output like this:\n\n```bash\ntest_balance_teams (dm.Tests) ... ok\ntest_calculate_avg_height (dm.Tests) ... ok\ntest_cleaned_players (dm.Tests) ... ok\ntest_create_string_from_list_of_lists (dm.Tests) ... ok\ntest_show_menu_options (dm.ToDoTests) ... skipped \"TODO: When there's more time, test this\"\ntest_show_team_stats (dm.ToDoTests) ... skipped \"TODO: When there's more time, test this\"\n\n----------------------------------------------------------------------\nRan 6 tests in 0.001s\n\nOK (skipped=2)\n```\n\nNote: If you run `dm.py` directly, with something like:\n\n```bash\npython3 dm.py\n```\n\nYou should see test result output like this:\n\n```bash\n....ss\n----------------------------------------------------------------------\nRan 6 tests in 0.000s\n\nOK (skipped=2)\n```\n\nThe `....ss` indicates four tests ran and two were skipped.\n\n\u003c/details\u003e\n\n---\n\n## Screenshot Showing Example Program States\n\n![Screen Shot 2022-08-22 at 11 32 45 AM](https://user-images.githubusercontent.com/764270/185974080-c8c1f404-b569-46d1-9493-c709baeaca92.png)\n\n---\n\n## Screenshot Showing Composed Data Structure\n\n![Screen Shot 2022-08-22 at 11 41 50 AM](https://user-images.githubusercontent.com/764270/185974336-efe35057-156c-4596-8fa6-989d59847373.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpoynor%2Fpython-basketball-team-stats-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanpoynor%2Fpython-basketball-team-stats-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpoynor%2Fpython-basketball-team-stats-tool/lists"}