Skip to content

Mpellet771/py-mlb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YE DESCRIPTION
-
MLB.com has a kind-of, sort-of API, providing a lot of league, team, and player information in XML and/or JSON. This
is a python abstraction library for that API.


YE REQUIREMENTS
-
Python 2.6+ (2.5 will not work)

To save player data and game logs:
MySQLDb
MySQL 5.0 and up, maybe 4.x too - who knows?


YE INSTRUCTIONS
-
python setup.py install
Run go.py in examples/ to see the magic.

To save player data and game logs:
* mysql -D DATABASE < sql/schema.sql
* Create a '.db.cfg' file in your home directory with valid MySQLdb connection information
 - http://mysql-python.sourceforge.net/MySQLdb.html
 - Check examples/.db.cfg for example


YE CAVEATS
-
A work in progress! Still some design issues to iron out. Please do let me know if you think of any suggestions.


YE TODO
-
* Add an easy sorting mechanism to team and league
* Better handle HTTP errors inside Fetcher
* Add memcache support


YE POINT OF CONTACT
-
Wells Oliver, wells@submute.net
http://blog.wellsoliver.com

About

Python abstraction layer for MLB.com information "API"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%