Skip to main content

A web scraper for SABRmetrics websites

Project description

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

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

sabrmetrics-0.6.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

sabrmetrics-0.6.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file sabrmetrics-0.6.0.tar.gz.

File metadata

  • Download URL: sabrmetrics-0.6.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for sabrmetrics-0.6.0.tar.gz
Algorithm Hash digest
SHA256 32f09fa3bc3813819d6f37d0fa3ea22e089c5fed93c141ae671add95df583fff
MD5 ea9661ae64e00c75254c630ed465ab7e
BLAKE2b-256 bea71e6d9ca349d8c2e2b1ebeb5ea3f4749c6f4b06bfaee3921752a3d9336a05

See more details on using hashes here.

File details

Details for the file sabrmetrics-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: sabrmetrics-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for sabrmetrics-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e612f2ee6d3393c778a09145f5396db461c92e001c6357892d122dd06310c3c6
MD5 57219a38da303470724138a0106223a6
BLAKE2b-256 e7edd2f4310e3cb804b2cd9f16a2556d04a722e43f06763436683fefadb3d23e

See more details on using hashes here.

Supported by

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