Skip to main content

A library for collecting baseball statistics from Baseball Reference

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.2.tar.gz (55.2 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.2-py3-none-any.whl (66.5 kB view details)

Uploaded Python 3

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

Hashes for brlib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c1a18deae948a4e0c4fc5e94dd520d80f8a4a97e88ea504a2a0e19a27c8e9767
MD5 492c4646881ecf94a09a1117d5fd4410
BLAKE2b-256 2b8dfa24a7a4d6fc25dfb4a3fc73e914448e94b7fd42924aa72245c08a79a278

See more details on using hashes here.

Provenance

The following attestation bundles were made for brlib-0.0.2.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.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

Hashes for brlib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d23ce55994f028e2128c7604c72cc5bad76e92f43598c6f4747ebc7e682d8c59
MD5 5e08987b100fed6dbf4ab8175762c94a
BLAKE2b-256 6e2575b707a20feaebeeb3f684b2033e92511bd356ccc3e0816b46dc4601ef87

See more details on using hashes here.

Provenance

The following attestation bundles were made for brlib-0.0.2-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