Skip to main content

SABRmetrics


Background

An open-source library of web-scraping software for popular SABRmetrics websites.

Sabermetrics (or originally as SABRmetrics) is the empirical analysis of baseball, especially baseball statistics that measure in-game activity.

-- Wikipedia

sabermetrics, the statistical analysis of baseball data. Sabermetrics aims to quantify baseball players’ performances based on objective statistical measurements, especially in opposition to many of the established statistics (such as, for example, runs batted in and pitching wins) that give less accurate approximations of individual efficacy.

-- Britannica


Primary Features

  • Easy scraping of various Internet Player ID databases

Installation

From PyPI:

python -m pip install sabrmetrics

Directly from GitHub:

python -m pip install -e git+https://github.com/JacobLee23/SABRmetrics.git#egg=sabrmetrics

Requirements

This project requires Python 3.6+.

Note: Some of the packages listed in the project Pipfile under dev-packages are not compatible with Python 3.6. This includes pytest, so project tests cannot be run using Python 3.6. However, all primary dependencies (under default) are compatible with Python 3.6, so Python 3.6 supports most normal functionality.

Dependencies

This project uses pipenv (Documentation) for virtual environment dependency management. See the Pipfile to see a full list of package dependencies, including development dependencies.

Testing

The tests for this project are written using pytest (Documentation). To run the project tests, run:

pytest sabrmetrics/tests/

The pipenv command script shorthand defined in the project Pipfile can also be used to run the project tests; run:

pipenv pytest

Another pipenv command script shorthand is defined in the project Pipfile can be used to output an HTML test report, using pytest-html (Documentation); run:

pipenv pytest-html

License

This project is license under the MIT License.

Documentation

Documentation Status

The documentation for this project is hosted by Read the Docs: Official Documentation

Release files for sabrmetrics 0.6.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 sabrmetrics 0.6.0
File Size Uploaded
sabrmetrics-0.6.0.tar.gz 13.7 kB Details

Built distribution (wheel)

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

Total release size: 26.9 kB

Release files / sabrmetrics-0.6.0.tar.gz

Download URL sabrmetrics-0.6.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
32f09fa3bc3813819d6f37d0fa3ea22e089c5fed93c141ae671add95df583fff
BLAKE2b-256 checksum
How to use checksums
bea71e6d9ca349d8c2e2b1ebeb5ea3f4749c6f4b06bfaee3921752a3d9336a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / sabrmetrics-0.6.0-py3-none-any.whl

Download URL sabrmetrics-0.6.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e612f2ee6d3393c778a09145f5396db461c92e001c6357892d122dd06310c3c6
BLAKE2b-256 checksum
How to use checksums
e7edd2f4310e3cb804b2cd9f16a2556d04a722e43f06763436683fefadb3d23e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6
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