Skip to main content

A library for collecting baseball statistics from Baseball Reference

Reason this release was yanked:

A bad configuration resulted in the library being unusable.

Project description

brlib

Tests PyPI Latest Release

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, and Team classes give you easy access to all associated data in one place, with attributes for stats tables, information, and more.
  • Aggregate these into Games, Players, or Teams classes, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brlib-0.0.1.tar.gz (54.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brlib-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file brlib-0.0.1.tar.gz.

File metadata

  • Download URL: brlib-0.0.1.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brlib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 92a495587540b3eb57ba6cd8634d4da64eac33ac9aeca00a20c6666b802d976d
MD5 b409276086f0cf5be162e315527e644f
BLAKE2b-256 891dcd2eaed2fd9bc54ec49b65c552e19ad3f03b9f65b01b7f93109f277628ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for brlib-0.0.1.tar.gz:

Publisher: publish.yml on john-bieren/brlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brlib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: brlib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brlib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6a3d4b1fdb25a06ab9c2849046f5ead8f2ed328a24d5721ec4abbec55f66ef
MD5 c0195ed1d507cce131afbeb7864c0f92
BLAKE2b-256 b1cae15b5c635ee9b7d8834e9ef6dcfdc4d2f0638ea73c464d56317cf322272d

See more details on using hashes here.

Provenance

The following attestation bundles were made for brlib-0.0.1-py3-none-any.whl:

Publisher: publish.yml on john-bieren/brlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page