Use CherryPy add a web interface to a Python script
Conclusion
I hope this application has been an enjoyable way to introduce you to the CherryPy Python module. The Poker program illustrates a complete game, but using the same principles, you could add a web interface to any Python script. Thus, that script could be modified to become much more friendly. Here's hoping Lady Luck favors the cards – and the code!
Infos
- How to play poker: http://www.pokernews.com/poker-rules/texas-holdem.htm
- CherryPy: http://www.cherrypy.org
- Code for this article: ftp://ftp.linux-magazine.com/pub/listings/raspberry-pi-geek.com/12
- Pygame: http://www.pygame.org
- Playing card download: http://opengameart.org/sites/default/files/Playing%20Cards.zip
Buy this article as PDF
Express-Checkout as PDF
Pages: 8
Price $2.95
(incl. VAT)
(incl. VAT)