Coder Social home page Coder Social logo

jacoblee23 / sabrmetrics Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 155 KB

A library of web-scraping software for popular SABRmetrics websites.

Home Page: https://pypi.org/project/SABRmetrics

License: MIT License

Python 100.00%
baseball baseball-statistics python python3 sabermetrics web-scraper sabrmetrics mlb

sabrmetrics's Introduction

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

sabrmetrics's People

Contributors

jacoblee23 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

sabrmetrics's Issues

Player ID Map index

>>> from sabrmetrics.sfbb.tools import PlayerIDMap
>>> playeridmap = PlayerIDMap()
>>> playeridmap.playeridmap.index
RangeIndex(start=2, stop=2867, step=1)

The index should start at 0.

Player ID Map CHANGELOG index

>>> from sabrmetrics.sfbb.tools import PlayerIDMap
>>> playeridmap = PlayerIDMap()
>>> playeridmap.changelog.index
RangeIndex(start=1, stop=567, step=1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.