{"id":19840924,"url":"https://github.com/torvaney/wyscoutapi","last_synced_at":"2025-05-01T19:30:48.056Z","repository":{"id":133824257,"uuid":"412471642","full_name":"Torvaney/wyscoutapi","owner":"Torvaney","description":"wyscoutapi is an extremely basic API client for the Wyscout API (v2 \u0026 v3) for Python","archived":false,"fork":false,"pushed_at":"2021-10-01T13:13:26.000Z","size":6,"stargazers_count":17,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T17:14:43.652Z","etag":null,"topics":["api","soccer-data","soccer-data-api","wyscout"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Torvaney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-10-01T13:12:00.000Z","updated_at":"2024-07-12T21:22:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"f279e926-c770-4c94-b06a-df7b28d9cd77","html_url":"https://github.com/Torvaney/wyscoutapi","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/Torvaney%2Fwyscoutapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fwyscoutapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fwyscoutapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fwyscoutapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torvaney","download_url":"https://codeload.github.com/Torvaney/wyscoutapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932589,"owners_count":21667175,"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":["api","soccer-data","soccer-data-api","wyscout"],"created_at":"2024-11-12T12:28:43.921Z","updated_at":"2025-05-01T19:30:48.050Z","avatar_url":"https://github.com/Torvaney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wyscoutapi\n\nwyscoutapi is an extremely basic API client for the [Wyscout API](https://apidocs.wyscout.com/) (v2 \u0026 v3).\n\n## Usage\n\nInstall with `pip install wyscoutapi`.\n\nTo connect to the Wyscout v3 api:\n\n```python\nimport wyscoutapi\n\nclient = wyscoutapi.WyscoutAPI(\n    username='myusername',\n    password='mypassword',\n)\n\nclient.player(329061)\n```\n\nTo use the v2 legacy API, or alter the rate-limit \n(defaults to [12 requests per second](https://apidocs.wyscout.com/#section/Authentication/Rate-limits)):\n\n```python\nimport wyscoutapi\n\nclient = wyscoutapi.WyscoutAPI(\n    username='myusername',\n    password='mypassword',\n    version='v2',\n    requests_per_second=10\n)\n\nclient.player(329061)\n```\n\n## API mocking\n\nIt can be useful to mock the API client for testing and local development.\n\nTo do this, create a custom \"loader\" to handle requests, and pass it to the `APIClient` constructor. \n\n```python\nimport wyscoutapi\n\n\nclass StubLoader:\n    def __init__(self):\n        pass\n\n    def get_route_json(self, *route, **params):\n        return {\n            'stub': 'This is a stub response'\n        }\n    \n\nclient = wyscoutapi.APIClient(loader=StubLoader())\nclient.player(329061)\n```\n\n## Other options\n\nWyscout provides an OpenAPI specification for their v3 API (see [https://apidocs.wyscout.com/](https://apidocs.wyscout.com/)). \nYou may prefer to create a more sophisticated API Client using code-generation tools such as [openapi-generator](https://github.com/OpenAPITools/openapi-generator) or [\nopenapi-python-client](https://pythonrepo.com/repo/triaxtec-openapi-python-client-python-fastapi-utilities), although as of 2021-10-01, \nI had some issues getting this to work with both of the generators linked above.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Fwyscoutapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorvaney%2Fwyscoutapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Fwyscoutapi/lists"}