Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
nba_stats -> nbapy
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpavlock committed Dec 1, 2019
1 parent fc24815 commit f90911b
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# *nba_stats - [stats.nba.com](https://stats.nba.com) API for python*
# *nbapy - [stats.nba.com](https://stats.nba.com) API for python*

## Documentation
An ongoing process, but check out the [wiki](https://github.com/jtpavlock/nba_stats/wiki) or feel free to poke around the codebase.
An ongoing process, but check out the [wiki](https://github.com/jtpavlock/nbapy/wiki) or feel free to poke around the codebase.

## Summary
A python facing API for stats.nba.com (Still in heavy development)
Expand All @@ -10,7 +10,7 @@ A python facing API for stats.nba.com (Still in heavy development)
NOTE: Developmental builds, are by no means stable If you want the stable version use:

```
$ pip install nba_stats
$ pip install nbapy
```

Else:
Expand All @@ -27,7 +27,7 @@ $ pip install .

## Planned development
### 1. Documentation
- All around documentation not only of nba_stats but also stats.nba.com (it's pretty nonexistent)
- All around documentation not only of nbapy but also stats.nba.com (it's pretty nonexistent)

## Development
#### 1. Fork the repository and create a feature/bug fix branch
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions nba_stats/draft_combine.py → nbapy/draft_combine.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from nba_stats.nba_api import NbaAPI
from nba_stats import constants
from nbapy.nba_api import NbaAPI
from nbapy import constants


class Summary:
Expand Down
4 changes: 2 additions & 2 deletions nba_stats/game.py → nbapy/game.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from abc import ABC

from nba_stats.nba_api import NbaAPI
from nba_stats import constants
from nbapy.nba_api import NbaAPI
from nbapy import constants


class Info:
Expand Down
4 changes: 2 additions & 2 deletions nba_stats/league.py → nbapy/league.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""League-wide stats"""

from nba_stats.nba_api import NbaAPI
from nba_stats import constants
from nbapy.nba_api import NbaAPI
from nbapy import constants


class Lineups:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions nba_stats/player.py → nbapy/player.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd

from nba_stats.nba_api import NbaAPI
from nba_stats import constants
from nbapy.nba_api import NbaAPI
from nbapy import constants


class PlayerNotFoundException(Exception):
Expand Down
4 changes: 2 additions & 2 deletions nba_stats/shot_chart.py → nbapy/shot_chart.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from nba_stats.nba_api import NbaAPI
from nba_stats import constants
from nbapy.nba_api import NbaAPI
from nbapy import constants


class ShotChart:
Expand Down
4 changes: 2 additions & 2 deletions nba_stats/team.py → nbapy/team.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from nba_stats.nba_api import NbaAPI
from nba_stats import constants
from nbapy.nba_api import NbaAPI
from nbapy import constants


class TeamList:
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
LONG_DESCRIPTION = readme.read()

setup(
name='nba_stats',
name='nbapy',
version='1.0.1',
description='Python client for NBA statistics located at nba.com',
long_description=LONG_DESCRIPTION,
url='https://github.com/jtpavlock/nba_stats',
url='https://github.com/jtpavlock/nbapy',
packages=[
'nba_stats',
'nbapy',
],
install_requires=[
'requests',
Expand Down
2 changes: 1 addition & 1 deletion tests/endpoints/test_draft_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
We won't mock any api calls just to make sure they haven't changed on us.
"""
from nba_stats import draft_combine
from nbapy import draft_combine


class TestSummary:
Expand Down
2 changes: 1 addition & 1 deletion tests/endpoints/test_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
We won't mock any api calls just to make sure they haven't changed on us.
"""
from nba_stats import game
from nbapy import game

game_id = '0021900017'

Expand Down
2 changes: 1 addition & 1 deletion tests/endpoints/test_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
We won't mock any api calls just to make sure they haven't changed on us.
"""
from nba_stats import league
from nbapy import league


class TestLineups:
Expand Down
2 changes: 1 addition & 1 deletion tests/endpoints/test_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
import pytest

from nba_stats import player
from nbapy import player

player_id = '1628369' # Jayson Tatum
vs_player_id = '2544' # LeBron James
Expand Down
2 changes: 1 addition & 1 deletion tests/endpoints/test_shot_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
We won't mock any api calls just to make sure they haven't changed on us.
"""
from nba_stats import shot_chart
from nbapy import shot_chart

player_id = '1628369' # Jayson Tatum

Expand Down
2 changes: 1 addition & 1 deletion tests/endpoints/test_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
We won't mock any api calls just to make sure they haven't changed on us.
"""
from nba_stats import team
from nbapy import team

team_id = '1610612738' # Celtics
player_id = '2544' # LeBron James
Expand Down

0 comments on commit f90911b

Please sign in to comment.