{"id":19840928,"url":"https://github.com/torvaney/wingback","last_synced_at":"2025-05-01T19:30:49.843Z","repository":{"id":133824253,"uuid":"367604597","full_name":"Torvaney/wingback","owner":"Torvaney","description":"Backtesting team-strength models","archived":false,"fork":false,"pushed_at":"2024-06-02T21:55:44.000Z","size":1483,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:06:45.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Torvaney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-15T10:40:03.000Z","updated_at":"2024-12-25T04:34:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"d12a64dc-33ef-46d6-b0b9-0e426ed8774a","html_url":"https://github.com/Torvaney/wingback","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%2Fwingback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fwingback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fwingback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fwingback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torvaney","download_url":"https://codeload.github.com/Torvaney/wingback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932590,"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":[],"created_at":"2024-11-12T12:28:46.245Z","updated_at":"2025-05-01T19:30:47.793Z","avatar_url":"https://github.com/Torvaney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wing Back\n\u003e Testing team strength models in Python\n\n\nBecause it's backtesting... gettit? Wing _back_? ... Yeah, I'll show myself out.\n\n## Usage\n\n### Initial setup\n\nThis project is built on top of [`understat-db`](https://github.com/Torvaney/understat-db). The initial setup is the same.\n\nThe simplest way to get started is to populate a local database with `docker-compose`.\n\nFirst, clone the repository:\n\n```bash\ngit clone https://github.com/Torvaney/wingback.git\ncd wingback\n```\n\nThen, setup the local environment\n\n```bash\nmake env                  # Create a virtualenv and installs the project \u0026 dependencies\nsource venv/bin/activate  # Activate the virtualenv\ncp .env.sample .env       # Copy default environment vars to .env\n```\n\nRun the database\n\n```bash\ndocker-compose up -d db   # Start a postgres database within a docker container\nwingback migrate          # Create base database tables\n```\n\nFinally, import the data you want\n\n```bash\nwingback ingest --leagues EPL --seasons 2020\n```\n\n### Backtesting\n\nThe xG-based models require match simulations to be present in the database. You can generate these with the `resimulate` command:\n\n```bash\nwingback resimulate --leagues EPL --seasons 2020\n```\n\nFinally, to backtest the models, you can use the `backtest` command:\n\n```bash\nwingback backtest --league EPL --start-date 2021-01-01\n```\n\nNote that the full suite of models is very large (see `wingback backtest --help`) and takes a long time to run. You can select specific models using the `--models` flag.\n\n## Requirements\n\nTo run this project you will need:\n\n* Python 3.6+\n* Docker\n\n\n## Contributing\n\nPull requests are encouraged! For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Fwingback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorvaney%2Fwingback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Fwingback/lists"}