brlib 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brlib-0.0.1/.gitignore +0 -0
- brlib-0.0.1/LICENSE.txt +21 -0
- brlib-0.0.1/PKG-INFO +71 -0
- brlib-0.0.1/README.md +39 -0
- brlib-0.0.1/brlib/__init__.py +1334 -0
- brlib-0.0.1/brlib/_helpers/__init__.py +0 -0
- brlib-0.0.1/brlib/_helpers/abbreviations_manager.py +230 -0
- brlib-0.0.1/brlib/_helpers/constants.py +974 -0
- brlib-0.0.1/brlib/_helpers/inputs.py +148 -0
- brlib-0.0.1/brlib/_helpers/no_hitter_dicts.py +245 -0
- brlib-0.0.1/brlib/_helpers/requests_manager.py +62 -0
- brlib-0.0.1/brlib/_helpers/singleton.py +12 -0
- brlib-0.0.1/brlib/_helpers/utils.py +179 -0
- brlib-0.0.1/brlib/all_major_leaguers.py +29 -0
- brlib-0.0.1/brlib/find_asg.py +60 -0
- brlib-0.0.1/brlib/find_games.py +277 -0
- brlib-0.0.1/brlib/find_teams.py +139 -0
- brlib-0.0.1/brlib/game.py +788 -0
- brlib-0.0.1/brlib/games.py +184 -0
- brlib-0.0.1/brlib/get_games.py +44 -0
- brlib-0.0.1/brlib/get_players.py +40 -0
- brlib-0.0.1/brlib/get_teams.py +40 -0
- brlib-0.0.1/brlib/options.py +263 -0
- brlib-0.0.1/brlib/player.py +748 -0
- brlib-0.0.1/brlib/players.py +96 -0
- brlib-0.0.1/brlib/team.py +427 -0
- brlib-0.0.1/brlib/teams.py +113 -0
- brlib-0.0.1/pyproject.toml +52 -0
brlib-0.0.1/.gitignore
ADDED
|
File without changes
|
brlib-0.0.1/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 John Bieren
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
brlib-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: brlib
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A library for collecting baseball statistics from Baseball Reference
|
|
5
|
+
Project-URL: Homepage, https://github.com/john-bieren/brlib
|
|
6
|
+
Project-URL: Documentation, https://github.com/john-bieren/brlib/tree/master/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/john-bieren/brlib.git
|
|
8
|
+
Project-URL: Issues, https://github.com/john-bieren/brlib/issues
|
|
9
|
+
Author-email: John Bieren <jbieren64@gmail.com>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE.txt
|
|
12
|
+
Keywords: baseball,baseball reference,baseball stats,mlb
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
|
+
Requires-Dist: beautifulsoup4<5.0.0,>=4.14.0
|
|
24
|
+
Requires-Dist: curl-cffi<1.0.0,>=0.13.0
|
|
25
|
+
Requires-Dist: lxml<7.0.0,>=6.0.2
|
|
26
|
+
Requires-Dist: pandas<3.0.0,>=2.3.0
|
|
27
|
+
Requires-Dist: platformdirs<5.0.0,>=4.5.0
|
|
28
|
+
Requires-Dist: tqdm<5.0.0,>=4.67.1
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=9.0.0; extra == 'dev'
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# brlib
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
[](https://pypi.org/project/brlib)
|
|
37
|
+
|
|
38
|
+
A Python library for collecting baseball statistics from [Baseball Reference](https://www.baseball-reference.com).
|
|
39
|
+
|
|
40
|
+
> [!IMPORTANT]
|
|
41
|
+
> brlib is in beta, breaking changes are possible until the release of version 1.
|
|
42
|
+
|
|
43
|
+
## Key Features
|
|
44
|
+
|
|
45
|
+
* `Game`, `Player`, and `Team` classes give you easy access to all associated data in one place, with attributes for stats tables, information, and more.
|
|
46
|
+
* Aggregate these into `Games`, `Players`, or `Teams` classes, which contain similar attributes, for easy analysis of larger samples.
|
|
47
|
+
* Quickly search for games, players, and teams of interest, and gather their stats without violating the [rate limit](https://www.sports-reference.com/bot-traffic.html).
|
|
48
|
+
|
|
49
|
+
Learn more by reading the documentation on the [wiki](https://github.com/john-bieren/brlib/wiki).
|
|
50
|
+
|
|
51
|
+
## Install
|
|
52
|
+
|
|
53
|
+
brlib can be installed using pip:
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
pip install brlib
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
or from this repo, in which case you'll want to install the development dependencies as well:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
git clone https://github.com/john-bieren/brlib.git
|
|
63
|
+
cd brlib
|
|
64
|
+
pip install -e .[dev]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Once installed, you can import brlib into your Python scripts:
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
import brlib as br
|
|
71
|
+
```
|
brlib-0.0.1/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# brlib
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
[](https://pypi.org/project/brlib)
|
|
5
|
+
|
|
6
|
+
A Python library for collecting baseball statistics from [Baseball Reference](https://www.baseball-reference.com).
|
|
7
|
+
|
|
8
|
+
> [!IMPORTANT]
|
|
9
|
+
> brlib is in beta, breaking changes are possible until the release of version 1.
|
|
10
|
+
|
|
11
|
+
## Key Features
|
|
12
|
+
|
|
13
|
+
* `Game`, `Player`, and `Team` classes give you easy access to all associated data in one place, with attributes for stats tables, information, and more.
|
|
14
|
+
* Aggregate these into `Games`, `Players`, or `Teams` classes, which contain similar attributes, for easy analysis of larger samples.
|
|
15
|
+
* Quickly search for games, players, and teams of interest, and gather their stats without violating the [rate limit](https://www.sports-reference.com/bot-traffic.html).
|
|
16
|
+
|
|
17
|
+
Learn more by reading the documentation on the [wiki](https://github.com/john-bieren/brlib/wiki).
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
brlib can be installed using pip:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
pip install brlib
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
or from this repo, in which case you'll want to install the development dependencies as well:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
git clone https://github.com/john-bieren/brlib.git
|
|
31
|
+
cd brlib
|
|
32
|
+
pip install -e .[dev]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Once installed, you can import brlib into your Python scripts:
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
import brlib as br
|
|
39
|
+
```
|