Managing your process with the CherryPy’s bus
CherryPy is a successful small web framework which over the years has built up its performances as well as its stability. To do so, Robert Brewer, the main CherryPy’s architect has introduced what is...
View ArticlePlugging AMQP and WebSockets
In my last article, I discussed the way the WSPBus could help your management of Python processes. This time, I’ll show how the bus can help plugging in heterogeneous frameworks and manage them...
View ArticleA quick chat WebSockets/AMQP client
In my previous article I described how to plug WebSockets into AMQP using Tornado and pika. As a follow-up, I’ll show you how this can be used to write the simplest chat client. First we create a web...
View ArticleUsing Jython as a CLI frontend to HBase
HBase, the well known non-relational distributed database, comes with a console program to perform various operations on a HBase cluster. I’ve personally found this tool to be a bit limited and I’ve...
View ArticleIntegrating SQLAlchemy into a CherryPy application
Quite often, people come on the CherryPy IRC channel asking about the way to use SQLAlchemy with CherryPy. There are a couple of good recipes on the tools wiki but I find them a little complex to begin...
View ArticleRunning CherryPy on Android with SL4A
CherryPy runs on Android thanks to the SL4A project. So if you feel like running Python and your own web server on your Android device, well you can just do so. You’ve probably not heard something that...
View ArticleWebSocket for CherryPy 3.2
Just a quick note about the first draft of support for WebSocket in CherryPy. You can find the code here. Note that this is still work in progress but does work against Chrome and the pywebsocket echo...
View ArticleHosting a Django application on a CherryPy server
Recently at work I’ve had the requirement to host a Django application in a CherryPy server. I first looked for various projects I knew were doing just that. Unfortunately, after trying them I was...
View ArticleAcceptance testing a CherryPy application with Robot Framework
I recently received the Python Testing Cookbook authored by Greg L. Turnquist and was happy to read about recipes on acceptance testing using Robot Framework. We’ve been using this tool at work for a...
View Articlews4py – WebSocket client and server library for Python
Recently I released ws4py, a package that provides client and server WebSocket support for Python 2.6 and 2.7. Let’s first have a quick overview of what ws4py offers for now: WebSocket specification...
View Article“Robot Framework Test Automation” book review
From time to time PacktPub will request a book review of one of their Python-related titles. This time around it was regarding their “Robot Framework Test Automation” book they recently released. Since...
View ArticleThe joy of distributing Python packages for Python 2 and 3
I released ws4py 0.3.4 this weekend and although I had integrated support for Python 2 and 3 for a long time now, I ran into a challenge I had quite missed. Indeed, until now my Python 3 support had...
View ArticleHaving fun with WebSocket and Canvas
Recently, I was advised that WebFaction had added support for WebSocket in their custom applications by enabling the according nginx module in their frontend. Obviously, I had to try it out with my own...
View ArticleCherryPy documentation new start
Early on this year, a discussion emerged on the CherryPy mailing-list about the project. Most people said they loved the project but had struggled with its documentation. Though rich and extensive, it...
View ArticleRobot Framework and Sphinx: A suitable toolset for your specification by example
At work, we have been using Robot Framework for all kinds of tests for a few years now and it’s proven to be the good choice. Robot Framework’s simple syntax and grammar does not scare testers away...
View ArticleCreate a docker container for your CherryPy application
In the past year, process isolation through the use of containers has exploded and you can find containers for almost anything these days. So why not creating a container to isolate your CherryPy...
View ArticleA more concrete example of a complete web application with CherryPy,...
In the previous post, I described how to setup a docker image to host your CherryPy application. In this installment, I will present a complete – although simple – web application made of a database,...
View ArticleDeploying a docker container of a CherryPy application onto a CoreOS cluster
Previously, I presented a simple web application that was distributed into several docker containers. In this article, I will be introducing the CoreOS platform as the backend for clusterizing a...
View ArticleAn asynchronous CherryPy server based on asyncio
CherryPy is a minimalist web application server written in Python. Hundreds of people have relied on it for more than fourteen years now. Recently, I’ve gained interest in the native asynchronous...
View Articlews4py is eager for a new maintainer
Years ago, I got really interested in the WebSocket protocol that eventually landed as RFC 6455. It was the first time I would spend so much time trying to participate elaborating a protocol....
View Article