{"id":37613398,"url":"https://github.com/amosbastian/understat","last_synced_at":"2026-01-16T10:27:26.732Z","repository":{"id":48090405,"uuid":"174174137","full_name":"amosbastian/understat","owner":"amosbastian","description":"An asynchronous Python package for https://understat.com/.","archived":false,"fork":false,"pushed_at":"2025-12-16T15:52:42.000Z","size":102,"stargazers_count":172,"open_issues_count":4,"forks_count":33,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-12-20T06:55:14.090Z","etag":null,"topics":["expected-value","football","fpl","hacktoberfest","machine-learning","metrics","soccer","understat"],"latest_commit_sha":null,"homepage":"","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/amosbastian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing/authors.rst","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":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-06T15:49:04.000Z","updated_at":"2025-12-16T15:52:47.000Z","dependencies_parsed_at":"2024-06-19T00:24:01.763Z","dependency_job_id":null,"html_url":"https://github.com/amosbastian/understat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amosbastian/understat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosbastian%2Funderstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosbastian%2Funderstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosbastian%2Funderstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosbastian%2Funderstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amosbastian","download_url":"https://codeload.github.com/amosbastian/understat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosbastian%2Funderstat/sbom","scorecard":{"id":190344,"data":{"date":"2025-08-11","repo":{"name":"github.com/amosbastian/understat","commit":"9a02234379d7e39f87b1d0d4ee0e6de5f4d5247c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":4,"reason":"Found 11/23 approved changesets -- score normalized to 4","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/workflow.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/amosbastian/understat/workflow.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/amosbastian/understat/workflow.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/workflow.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/workflow.yml:20","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 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-16T20:32:56.540Z","repository_id":48090405,"created_at":"2025-08-16T20:32:56.540Z","updated_at":"2025-08-16T20:32:56.540Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["expected-value","football","fpl","hacktoberfest","machine-learning","metrics","soccer","understat"],"created_at":"2026-01-16T10:27:25.626Z","updated_at":"2026-01-16T10:27:26.713Z","avatar_url":"https://github.com/amosbastian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    A Python package for https://understat.com/.\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://travis-ci.com/amosbastian/understat\"\u003e\u003cimg src=\"https://travis-ci.com/amosbastian/understat.svg?branch=master\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/understat/\" alt=\"Version\"\u003e\n        \u003cimg src=\"https://badge.fury.io/py/understat.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/understat/\" alt=\"Python version\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Python-3.6%2B-blue.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://understat.readthedocs.io/en/latest/\" alt=\"Documentation\"\u003e\n        \u003cimg src=\"https://readthedocs.org/projects/understat/badge/?version=latest\u0026style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nJoin the [Discord server](https://discord.gg/cjY37fv) or submit [an issue](https://github.com/amosbastian/understat/issues) for help and / or suggestions!\n\n## Installing understat\n\nThe recommended way to install understat is via `pip`.\n\n    pip install understat\n\nTo install it directly from GitHub you can do the following:\n\n    git clone git://github.com/amosbastian/understat.git\n\nYou can also install a [.tar file](https://github.com/requests/requests/tarball/master)\nor [.zip file](https://github.com/requests/requests/tarball/master)\n\n    curl -OL https://github.com/amosbastian/understat/tarball/master\n    curl -OL https://github.com/amosbastian/understat/zipball/master # Windows\n\nOnce it has been downloaded you can easily install it using `pip`:\n\n    cd understat\n    pip install .\n\n## Usage\n\nAn example of using `understat` can be found below:\n\n```python\nimport asyncio\nimport json\n\nimport aiohttp\n\nfrom understat import Understat\n\n\nasync def main():\n    async with aiohttp.ClientSession() as session:\n        understat = Understat(session)\n        data = await understat.get_league_players(\"epl\", 2018, {\"team_title\": \"Manchester United\"})\n        print(json.dumps(data))\n\n\nif __name__ == \"__main__\":\n    loop = asyncio.new_event_loop()\n    asyncio.set_event_loop(loop)\n    loop.run_until_complete(main())\n```\n\n\n## Contributing\n\n1. Fork the repository on GitHub.\n2. Run the tests with `pytest tests/` to confirm they all pass on your system.\n   If the tests fail, then try and find out why this is happening. If you aren't\n   able to do this yourself, then don't hesitate to either create an issue on\n   GitHub, or send an email to [amosbastian@gmail.com](mailto:amosbastian@gmail.com\u003e).\n3. Either create your feature and then write tests for it, or do this the other\n   way around.\n4. Run all tests again with with `pytest tests/` to confirm that everything\n   still passes, including your newly added test(s).\n5. Create a pull request for the main repository's `master` branch.\n\n## Documentation\n\nDocumentation and examples for **understat** can be found at http://understat.readthedocs.io/en/latest/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famosbastian%2Funderstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famosbastian%2Funderstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famosbastian%2Funderstat/lists"}