A library for collecting baseball statistics from Baseball Reference
Project description
brlib
A Python library for collecting baseball statistics from Baseball Reference.
[!IMPORTANT] brlib is in beta, breaking changes are possible until the release of version 1.
Key Features
Game,Player, andTeamclasses give you easy access to all associated data in one place, with attributes for stats tables, information, and more.- Aggregate these into
Games,Players, orTeamsclasses, which contain similar attributes, for easy analysis of larger samples. - Quickly search for games, players, and teams of interest, and gather their stats without violating the rate limit.
Learn more by reading the documentation on the wiki.
Install
brlib can be installed using pip:
pip install brlib
or from this repo, in which case you'll want to install the development dependencies as well:
git clone https://github.com/john-bieren/brlib.git
cd brlib
pip install -e .[dev]
Once installed, you can import brlib into your Python scripts:
import brlib as br
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brlib-0.0.2.tar.gz.
File metadata
- Download URL: brlib-0.0.2.tar.gz
- Upload date:
- Size: 55.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a18deae948a4e0c4fc5e94dd520d80f8a4a97e88ea504a2a0e19a27c8e9767
|
|
| MD5 |
492c4646881ecf94a09a1117d5fd4410
|
|
| BLAKE2b-256 |
2b8dfa24a7a4d6fc25dfb4a3fc73e914448e94b7fd42924aa72245c08a79a278
|
Provenance
The following attestation bundles were made for brlib-0.0.2.tar.gz:
Publisher:
publish.yml on john-bieren/brlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brlib-0.0.2.tar.gz -
Subject digest:
c1a18deae948a4e0c4fc5e94dd520d80f8a4a97e88ea504a2a0e19a27c8e9767 - Sigstore transparency entry: 791176953
- Sigstore integration time:
-
Permalink:
john-bieren/brlib@17fd20f03288f8e2001a086cf5d90432a7272773 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/john-bieren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@17fd20f03288f8e2001a086cf5d90432a7272773 -
Trigger Event:
release
-
Statement type:
File details
Details for the file brlib-0.0.2-py3-none-any.whl.
File metadata
- Download URL: brlib-0.0.2-py3-none-any.whl
- Upload date:
- Size: 66.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d23ce55994f028e2128c7604c72cc5bad76e92f43598c6f4747ebc7e682d8c59
|
|
| MD5 |
5e08987b100fed6dbf4ab8175762c94a
|
|
| BLAKE2b-256 |
6e2575b707a20feaebeeb3f684b2033e92511bd356ccc3e0816b46dc4601ef87
|
Provenance
The following attestation bundles were made for brlib-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on john-bieren/brlib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brlib-0.0.2-py3-none-any.whl -
Subject digest:
d23ce55994f028e2128c7604c72cc5bad76e92f43598c6f4747ebc7e682d8c59 - Sigstore transparency entry: 791176958
- Sigstore integration time:
-
Permalink:
john-bieren/brlib@17fd20f03288f8e2001a086cf5d90432a7272773 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/john-bieren
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@17fd20f03288f8e2001a086cf5d90432a7272773 -
Trigger Event:
release
-
Statement type: