Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bradleyhurley/PyBall

Open more actions menu

Repository files navigation

PyBall - A MLB.com Stats API Python Client

Build Status codecov

API Documentation:

http://statsapi.mlb.com/docs/#

If anyone has any connection to MLB and can get access to the API documentation I would really appreciate it.

import pyball

def main():
    pb = pyball.PyBall()
    kluber = pb.get_player(446372)
    print(kluber.fullName)
    print(kluber.pitchHand.description)
    print(kluber.batSide.description)


if __name__ == '__main__':
    main()
This is very much in beta alpha.

Logging

This library uses logging to alert when the current version of this library does not match the MLB.com API. All loggers use PyBall. as a naming prefix. Use this to disable logging if you do not desire these alerts.

About

A Python 3 Client To Interact with MLB.com Stats

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.