2
BWAPI:
http://code.google.com/p/bwapi/