nbastatpy


Namenbastatpy JSON
Version 0.1.8 PyPI version JSON
download
home_pageNone
SummaryAn easy-to-use wrapper for nba_api to easily find data for a player, game, team, or season
upload_time2024-12-16 02:54:51
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords basketball data nba sports stats
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # NBAStatPy

## Overview

This is an easy-to-use wrapper for the `nba_api` package. The goal is to be able to easily access and find data for a player, game, team, or season. 

The data is accessed through a class based on how you're searching for it. A quickstart example is shown below. Currently there are 4 classes:

- `Game`
- `Player`
- `Season`
- `Team`

## Quickstart

To get started you can import the class that represents the data you're searching for.

```{python}
from nbastatpy.player import Player
```

Then you build a player using either an ID from stats.nba.com or the player's name. When you're building the player object you can add additional search data like season, data format, or playoffs vs. regular season.

```{python}
player = Player(
    "Giannis", 
    season="2020", 
    playoffs=True,
    permode="PerGame"
)
```

Once you have the player object, you can get different datasets based on the criteria. For instance, you can get the awards the player has won by doing the following:

```{python}
player.get_awards()
```

This returns a pandas dataframe with the awards won by the player each year.

There are a lot of endpoints and various arguments for more complex queries like tracking and synergy datasets.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nbastatpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "basketball, data, nba, sports, stats",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a3/4e/7d8bd9f0a6ac8d20b2b6a301d1b21e51b112af11b6e184d2ad5a6e8e671f/nbastatpy-0.1.8.tar.gz",
    "platform": null,
    "description": "# NBAStatPy\n\n## Overview\n\nThis is an easy-to-use wrapper for the `nba_api` package. The goal is to be able to easily access and find data for a player, game, team, or season. \n\nThe data is accessed through a class based on how you're searching for it. A quickstart example is shown below. Currently there are 4 classes:\n\n- `Game`\n- `Player`\n- `Season`\n- `Team`\n\n## Quickstart\n\nTo get started you can import the class that represents the data you're searching for.\n\n```{python}\nfrom nbastatpy.player import Player\n```\n\nThen you build a player using either an ID from stats.nba.com or the player's name. When you're building the player object you can add additional search data like season, data format, or playoffs vs. regular season.\n\n```{python}\nplayer = Player(\n    \"Giannis\", \n    season=\"2020\", \n    playoffs=True,\n    permode=\"PerGame\"\n)\n```\n\nOnce you have the player object, you can get different datasets based on the criteria. For instance, you can get the awards the player has won by doing the following:\n\n```{python}\nplayer.get_awards()\n```\n\nThis returns a pandas dataframe with the awards won by the player each year.\n\nThere are a lot of endpoints and various arguments for more complex queries like tracking and synergy datasets.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "An easy-to-use wrapper for nba_api to easily find data for a player, game, team, or season",
    "version": "0.1.8",
    "project_urls": null,
    "split_keywords": [
        "basketball",
        " data",
        " nba",
        " sports",
        " stats"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90ce8d02389e2f5337e8ff9c812cc95d12ae2a38a5749622ebe03d8c72a44520",
                "md5": "a8e5edd6ee948b75caf1f5e5b86cfcf1",
                "sha256": "6e7217c7d8e4fc7941d0a16a7641a0a25ebba0c98ed724b110f32a51c8225c2b"
            },
            "downloads": -1,
            "filename": "nbastatpy-0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a8e5edd6ee948b75caf1f5e5b86cfcf1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 14104,
            "upload_time": "2024-12-16T02:54:49",
            "upload_time_iso_8601": "2024-12-16T02:54:49.011911Z",
            "url": "https://files.pythonhosted.org/packages/90/ce/8d02389e2f5337e8ff9c812cc95d12ae2a38a5749622ebe03d8c72a44520/nbastatpy-0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a34e7d8bd9f0a6ac8d20b2b6a301d1b21e51b112af11b6e184d2ad5a6e8e671f",
                "md5": "4f2b64a0eb95efce282093e624c40cb3",
                "sha256": "fcc259c9c3380678c2520edfc79f26bfb98f003b45446e514f022c5e4b7d5f8e"
            },
            "downloads": -1,
            "filename": "nbastatpy-0.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "4f2b64a0eb95efce282093e624c40cb3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 12517,
            "upload_time": "2024-12-16T02:54:51",
            "upload_time_iso_8601": "2024-12-16T02:54:51.527257Z",
            "url": "https://files.pythonhosted.org/packages/a3/4e/7d8bd9f0a6ac8d20b2b6a301d1b21e51b112af11b6e184d2ad5a6e8e671f/nbastatpy-0.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 02:54:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nbastatpy"
}
        
Elapsed time: 0.40179s