{"id":20603474,"url":"https://github.com/danpoynor/python-basketball-stats-tool","last_synced_at":"2026-05-20T16:40:57.567Z","repository":{"id":41330795,"uuid":"507653251","full_name":"danpoynor/python-basketball-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-07-05T16:58:13.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T16:47:53.254Z","etag":null,"topics":["basketball","console-app","demo-app","docstring-documentation","dunder-main","game","python3","statistics","stats","unit-testing","word-game"],"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}},"created_at":"2022-06-26T18:26:55.000Z","updated_at":"2022-07-15T20:50:39.000Z","dependencies_parsed_at":"2022-08-31T20:00:53.170Z","dependency_job_id":null,"html_url":"https://github.com/danpoynor/python-basketball-stats-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danpoynor/python-basketball-stats-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-stats-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-stats-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-stats-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-stats-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danpoynor","download_url":"https://codeload.github.com/danpoynor/python-basketball-stats-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpoynor%2Fpython-basketball-stats-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33267138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T15:12:43.734Z","status":"ssl_error","status_checked_at":"2026-05-20T15:12:42.300Z","response_time":356,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["basketball","console-app","demo-app","docstring-documentation","dunder-main","game","python3","statistics","stats","unit-testing","word-game"],"created_at":"2024-11-16T09:17:23.415Z","updated_at":"2026-05-20T16:40:57.549Z","avatar_url":"https://github.com/danpoynor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Basketball 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 integers or floats.\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- 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\u003cdetails\u003e\n  \u003csummary\u003eExpand/Collapse\u003c/summary\u003e\n  \n\u003cimg width=\"499\" alt=\"Screen Shot 2022-07-05 at 11 06 45 AM\" src=\"https://user-images.githubusercontent.com/764270/177370712-ce5c170e-6bd6-49e5-886f-2a4d2dad86d4.png\"\u003e\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpoynor%2Fpython-basketball-stats-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanpoynor%2Fpython-basketball-stats-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpoynor%2Fpython-basketball-stats-tool/lists"}