{"id":50680003,"url":"https://github.com/alec-kr/F1PyStats","last_synced_at":"2026-06-25T16:01:09.816Z","repository":{"id":59772165,"uuid":"537576469","full_name":"alec-kr/F1PyStats","owner":"alec-kr","description":"An open-source Python3 package that provides Formula 1 data to developers.","archived":false,"fork":false,"pushed_at":"2026-05-04T23:27:37.000Z","size":553,"stargazers_count":60,"open_issues_count":4,"forks_count":20,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-05-05T01:26:08.838Z","etag":null,"topics":["codecov","collaborate","ergast-api","ergast-developer-api","ergast-drivers-api","f1","formula1","github","hacktoberfest","jetbrains","pandas","python","student-vscode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alec-kr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-16T18:29:31.000Z","updated_at":"2026-05-04T23:27:26.000Z","dependencies_parsed_at":"2023-02-17T13:45:42.280Z","dependency_job_id":"e4ab30ca-caa8-4c9b-8020-abcd352e3fe4","html_url":"https://github.com/alec-kr/F1PyStats","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alec-kr/F1PyStats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alec-kr%2FF1PyStats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alec-kr%2FF1PyStats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alec-kr%2FF1PyStats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alec-kr%2FF1PyStats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alec-kr","download_url":"https://codeload.github.com/alec-kr/F1PyStats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alec-kr%2FF1PyStats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34782137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["codecov","collaborate","ergast-api","ergast-developer-api","ergast-drivers-api","f1","formula1","github","hacktoberfest","jetbrains","pandas","python","student-vscode"],"created_at":"2026-06-08T18:00:31.969Z","updated_at":"2026-06-25T16:01:09.805Z","avatar_url":"https://github.com/alec-kr.png","language":"Python","funding_links":[],"categories":["Formula 1"],"sub_categories":["APIs and Libraries"],"readme":"# F1PyStats\n\n## ⚠️ Project Status\n\nF1PyStats is currently not maintained due to dependency on the Ergast API.\n\nFuture updates may include migration to a new data source if available.\n##\n\u003cimg src=\"https://raw.githubusercontent.com/alec-kr/F1PyStats/main/assets/F1PYStatsSimplified.png\" align=\"right\" alt=\"icon\" width=\"303\"\u003e\n\n[![GitHub Repo stars](https://img.shields.io/github/stars/alec-kr/F1PyStats?style=social)](https://github.com/alec-kr/F1PyStats)\n[![GitHub forks](https://img.shields.io/github/forks/alec-kr/F1PyStats?style=social)](https://github.com/alec-kr/F1PyStats/network/members)\n\n[![codecov](https://codecov.io/gh/alec-kr/F1PyStats/branch/main/graph/badge.svg?token=75FEMX2BHQ)](https://codecov.io/gh/alec-kr/F1PyStats)\n[![GitHub](https://img.shields.io/github/license/alec-kr/F1PyStats?color=blue)](https://github.com/alec-kr/F1PyStats/blob/main/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/alec-kr/F1PyStats)](https://github.com/alec-kr/F1PyStats/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/alec-kr/F1PyStats)](https://github.com/alec-kr/F1PyStats/pulls)\n[![GitHub contributors](https://img.shields.io/github/contributors/alec-kr/F1PyStats)](https://github.com/alec-kr/F1PyStats/graphs/contributors)\n\nF1PyStats is an open-source Python3 package that provides Formula 1 data/statistics to developers. This package obtains Formula 1 data via the [Ergast Developer API](http://ergast.com/mrd/), and returns results in a pandas DataFrame format.\n\n\n# Prerequisites\n## Python3\nBefore installing the package, you should ensure your Python version is at least [v3.11](https://www.python.org/downloads/release/python-3110/). If your version does not meet the requirements, please [download](https://www.python.org/downloads/) a newer version to ensure the package works as expected.\n\n## Poetry\nThe package uses [Poetry](https://python-poetry.org/) ([v1.2](https://github.com/python-poetry/poetry/releases/tag/1.2.0) or higher) as the primary dependency management tool. To install this tool, kindly follow their [official installation instructions](https://python-poetry.org/docs/).\n\n# Installation\n```\n// Clone the repo\n$ git clone https://github.com/alec-kr/F1PyStats.git\n\n// Install dependecies using poetry\n$ cd ../F1PyStats\n$ poetry install --only main\n\n// Build the package if you would to use it in other projects (https://python-poetry.org/docs/cli/#build)\npoetry build\n\n// Install built package (https://python-poetry.org/docs/cli/#add)\npoetry add ../F1Pystats/dist/f1pystats-0.1.1.whl\n```\n\n# Usage\n```\n# Import the package\nimport F1PyStats as fp\n```\n\nThe package currently contains thirteen functions\n| Function                    \t| Description                                                         \t| Returned Datatype \t|\n|-----------------------------\t|---------------------------------------------------------------------\t|-------------------\t|\n| fp.driver_standings(year)      \t| Returns the driver standings for a particular year                  \t| Pandas DataFrame  \t|\n| fp.constructor_standings(year) \t| Returns the constructor standings for a specified year              \t| Pandas DataFrame  \t|\n| fp.race_winners(year)          \t| Returns the race winners for a specified year                       \t| Pandas DataFrame  \t|\n| fp.race_table(year)           \t| Returns the race schedule for a specific year \t                      | Pandas DataFrame  \t|\n| fp.lap_times(year, race_round, lap_number)           \t| Returns the lap times for a specific lap in a particular race \t                      | Pandas DataFrame  \t|\n| fp.pit_stops(year, round, stop_number, fastest)           \t| Returns the pit stop info for a specific race/pit stop \t                      | Pandas DataFrame  \t|\n| fp.finishing_status(year,race_round)  | Returns the finishing status of races in a year (or a particular race if specified)     | Pandas DataFrame  |\n|fp.get_drivers(year, race_round) | Returns information on drivers in a given year (or a particular race if specified) | Pandas DataFrame |\n|fp.get_constructors(year) | Returns information on constructors in a given year | Pandas DataFrame |\n|fp.sprint_results(year,race_round) | Returns the sprint qualifying results for a specific race | Pandas DataFrame|\n|fp.qualifying_results(year, race_round) | Returns the qualifying results of a particular race | Pandas DataFrame |\n|fp.get_circuits(year) | Returns the circuit details of a specific race for a specific year| Pandas DataFrame |\n|fp.fastest_laps(year, race_round) | Returns the fastest lap for a particular race | Pandas DataFrame |\n\n\n\n# Generate API docs\n\nThe following command will generate API documentation under `docs/_build`.\n\n```\n$ poetry run nox -s docs\n```\n\n# Contributions\nPlease ensure you follow our [contributing guidelines](https://github.com/alec-kr/F1PyStats/blob/main/CONTRIBUTING.md) when contributing in any way to this repository.\n## Feature Requests\nPerhaps you have a great idea for a feature, but you're not sure how to implement it. \n\nNo worries! You can [create a feature request](https://github.com/alec-kr/F1PyStats/issues/new/choose), and someone will get in touch with you :grin:\n\n## Creating PRs\nKnow how to code and you'd like to add a feature? Feel free to [create a PR](https://github.com/alec-kr/F1PyStats/compare) :rocket:\n\n## Bug Reports\nSpot an issue or bug? Please let us know by [creating a bug report](https://github.com/alec-kr/F1PyStats/issues/new/choose) :bug:\n\n## Our Valuable Contributors✨\n\n  \u003ca href=\"https://github.com/alec-kr/F1PyStats/graphs/contributors\"\u003e\n    \u003cimg src=\"https://contrib.rocks/image?repo=alec-kr/F1PyStats\" /\u003e\n  \u003c/a\u003e\n\n\u003ch1 align=\"center\"\u003eHappy Coding  👨‍💻\u003c/h1\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falec-kr%2FF1PyStats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falec-kr%2FF1PyStats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falec-kr%2FF1PyStats/lists"}