Skip to main content

brlib

Tests PyPI Latest Release Python Versions Code style: black Imports: isort

A library for collecting baseball statistics from Baseball Reference.

Key Features

  • Game, Player, and Team classes give you easy access to all associated data in one place, with attributes for stat tables and other information.
  • Aggregate these into GameSet, PlayerSet, or TeamSet classes, which have similar attributes, for easy analysis of larger samples.
  • Search for games, players, and teams, and gather their stats.
  • Collect data 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 by cloning this repo:

pip install -e .

If you've cloned the repo, you can also install the development dependencies:

pip install --group dev

Once installed, you can import brlib into your Python scripts:

import brlib as br

Data Use

Since brlib gathers data from Baseball Reference, your use of this data is subject to their data use policy.

Metadata

Release files for brlib 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brlib 1.1.0
File Size Uploaded
brlib-1.1.0.tar.gz 340.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brlib 1.1.0
File Interpreter ABI Platform
brlib-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 422.1 kB

Release files / brlib-1.1.0.tar.gz

Download URL brlib-1.1.0.tar.gz
Size 340.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b3cecb9c8778517d402444b564b37ff152a8d59e99c110ac9b3bbbb33ce7e33d
BLAKE2b-256 checksum
How to use checksums
d38a0af9952b6a18dca5aa7e2b8b17ab7dad7e16dd8c12edc773d2845747cdad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / brlib-1.1.0-py3-none-any.whl

Download URL brlib-1.1.0-py3-none-any.whl
Size 81.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23347777316d9dbbc4ddf5a7982f5a67644619d9f5dce9e797d18eeb94151b4b
BLAKE2b-256 checksum
How to use checksums
dd1d72f3c9055ec0ec227e1783efeba0c86f244ced4800f8601b92d3a80183de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page