PyAlleg

The newcomer Python-Allegro library, joined the project Sep 13 2005. PyAlleg has an object-oriented approach to Allegro, as can be seen from the API reference below. Written in Pyrex by akx.
SourceForge downloads here.
The project is licensed under the zlib/libpng license.

API (Work In Progress)

class AbstractBitmap
	def destroy(self)
	def clear(self)
	def clearTo(self,color)
	def size(self)
	def putPixel(self,x,y,c)
	def getPixel(self,x,y)
	def hline(self,x1,y,x2,c)
	def vline(self,x,y1,y2,c)
	def line(self,x1,y1,x2,y2,c)
	def fastline(self,x1,y1,x2,y2,c)
	def rect(self,x1,y1,x2,y2,c)
	def fillRect(self,x1,y1,x2,y2,c)
	def rectfill(self,x1,y1,x2,y2,c)
	def triangle(self,x1,y1,x2,y2,x3,y3,c)
	def polygon(self,points,c)
	def circle(self,x,y,r,c)
	def fillCircle(self,x,y,r,c)
	def circlefill(self,x,y,r,c)
	def ellipse(self,x,y,rx,ry,c)
	def fillEllipse(self,x,y,rx,ry,c)
	def ellipsefill(self,x,y,rx,ry,c)
	def blit(self,AbstractBitmap dest,dx=0,dy=0,sx=0,sy=0,w=-1,h=-1)
	def maskedBlit(self,AbstractBitmap dest,dx=0,dy=0,sx=0,sy=0,w=-1,h=-1):	
	def stretchBlit(self,AbstractBitmap dest,dx=0,dy=0,
		sx=0,sy=0,srcw=-1,srch=-1,dw=-1,dh=-1)
	def maskedStretchBlit(self,AbstractBitmap dest,dx=0,dy=0,
		sx=0,sy=0,srcw=-1,srch=-1,dw=-1,dh=-1)
	def drawSprite(self,AbstractBitmap dest,x,y,flips=0,w=-1,h=-1)
	def drawTransSprite(self,AbstractBitmap dest,x,y)
	def drawLitSprite(self,AbstractBitmap dest,x,y, light)
	def drawGouraudSprite(self,AbstractBitmap dest,x,y,l1,l2,l3,l4)
	def rotateSprite(self,AbstractBitmap dest,x,y,angle,scale=1.0,vflip=0)
	def pivotSprite(self,AbstractBitmap dest,x,y,px,py,angle,scale=1.0,vflip=0)
	def save(self,filename)
	def setClip(self,x1,y1,x2,y2)
	def getClip(self)
	
class Bitmap(AbstractBitmap)
	def __new__(self,w,h,d=0)

def loadBitmap(filename)
def loadAnim(filename)

class ScreenBitmap(AbstractBitmap)
	def size(self)
	def acquire(self)
	def release(self)
	
class DoubleBuffer(AbstractBitmap)
	def flip(self)
	
class Font
	def draw(self,AbstractBitmap dest,x,y,c,text,mode=0,bg=-1)
	def justify(self,AbstractBitmap dest,x1,x2,y,diff,text,bg=-1)
	def height(self)
	def length(self,text)
	def width(self,text)
	
class AlFont
	def setSize(self,size)
	def getSizes(self)
	def setSpacing(self,l)
	def draw(self,AbstractBitmap dest,x,y,c,text,mode=0,bg=-1,antialias=0)
	def justify(self,AbstractBitmap dest,x1,x2,y,diff,text,bg=-1)
	def height(self)
	def length(self,text)
	def width(self,text)
	
def loadFont(filename)

class Sample
	def __new__(self,filename)
	def __dealloc__(self)
	def length(self)
	def __len__(self)
	def freq(self)
	def play(self,loop=0,vol=255,pan=0,freq=1000)
	def stop(self)
	def adjust(self,loop=0,vol=255,pan=0,freq=1000)
	
def exit()
def init()
def setWindowTitle(text)
def initKeyboard()
def initMouse()
def initGfx(m,w,h,d=-1,vw=0,vh=0)
def initSound()
def getScreen()
def gfxInited()
def getFont()
def keyDown(int k)
def keyPressed()
def keyMods()
def mouseX()
def mouseY()
def mouseZ()
def mouseB()
def mouse()
def setHwCursor(mode)
def setMouseCursor(cursor,AbstractBitmap bmp=None)
def showMouse(AbstractBitmap bmp)
def hideMouse()
def scareMouse()
def unscareMouse()
def mickeys()
def drawMode(mode, AbstractBitmap pattern=None, x=0,y=0)
def solidMode()
def xorMode()
def transMode()
def rgbHsv(r,g,b)
def hsvRgb(h,s,v)
def getRgb(c)
def setBlender(blender,a=255,r=255,g=255,b=255)
def setTrans(a)
def setAdd(a)
def Color(r,g,b,a=-1)
def HSVColor(h,s,v,a=-1)
def setDebug(flag)