Author Archives: Chad Lung

Learning Python WSGI and Building Simple Middleware

WSGI stands for Web Services Gateway. You can read the original PEP 333 as well as the updated PEP 3333 which includes community errata, addenda, and clarifications, as well as better Python 3 support. Today, I’m going to show you … Continue reading

Posted in Open Source, Python | Leave a comment

Trying out OpenStack with DevStack

DevStack offers shell scripts to build OpenStack development environments. Getting up and running with DevStack is reasonably easy, however, there are a couple things to know if you are new to it. I’m going to cover the basics on how … Continue reading

Posted in Open Source, OpenStack | Leave a comment

Building a (simple) REST application with Pecan (pecanpy)

Pecan is a lean Python web framework inspired by CherryPy, TurboGears, and Pylons (Pyramid). According to the main Pecan documentation page: “Pecan was created to fill a void in the Python web-framework world – a very lightweight framework that provides … Continue reading

Posted in Open Source, OpenStack, Python, REST | 4 Comments

Getting started with OpenStack Oslo Config (oslo.config)

The Oslo configuration API supports parsing command line arguments and .ini style configuration files. Its probably safe to say that all OpenStack projects use oslo.config. Make sure to also check out the oslo.config documentation on the OpenStack documentation website.

Posted in Open Source, OpenStack, Python | 2 Comments

Working with OpenStack Marconi (Message Queuing Service) with cURL and Python

This article is a follow-up to my previous post Installing OpenStack Marconi (Message Queuing Service) on Ubuntu 12.04 LTS. With this article I’ll show you some simple ways you can interact with Marconi. Marconi is one of the newer projects … Continue reading

Posted in Open Source, OpenStack, Python | Leave a comment

Installing OpenStack Marconi (Message Queuing Service) on Ubuntu 12.04 LTS

OpenStack Marconi is a message queuing service, if you’ve used a message queue before like Amazon SQS, RabbitMQ, etc. then you’ll be familiar with the concepts of Marconi. Marconi is an OpenStack project currently in the incubation phase. Today I’ll … Continue reading

Posted in Open Source, OpenStack, Ubuntu | Leave a comment

Setting up OpenStack (Havana) Keystone in ten easy steps on Ubuntu 12.04 LTS

I’m going to go through the steps required to setup OpenStack’s Identity Service Keystone on Ubuntu 12.04. I’ll assume you already have Ubuntu 12.04 LTS up and running.

Posted in Open Source, OpenStack, Python | Leave a comment

Running a Python (or almost anything) as a service with automatic restart via Upstart

Pretty often I run into a situation where I’d like a Linux application I’ve created to run as a service. Basically, run my Python, Go (GoLang), Ruby, etc. application on start-up and respawn it if it gets any kind of … Continue reading

Posted in Open Source, Python, Tornado, Ubuntu | 1 Comment

Learn how to create and use Python Decorators

Python is an amazing language to program in. Its easy to get started and you can dig as deep as you want. Today I’m going to show you how to use Python Decorators.

Posted in Open Source, Python | Leave a comment

Working with the Python Keystone Client with OpenStack Keystone

Keystone is an OpenStack project that provides Identity, Token, Catalog and Policy services for use specifically by projects in the OpenStack family. For the python-keystoneclient there’s a Python API (the keystoneclient module), and a command-line script (keystone). I’m going to … Continue reading

Posted in Open Source, OpenStack, Python, Ubuntu | Leave a comment