Greg L. Turnquist

Greg L. Turnquist

Alumni
Recent Blog posts by Greg L. Turnquist

Spring Python 1.1.1, 1.2.1, and 1.3.0.RC1 are released!

Engineering | December 20, 2011 | ...

Amidst the flurry of Spring releases this month, Spring Python has it's own.

Versions 1.1.1 and 1.2.1 are maintenance releases that patch some bugs. Version 1.3.0.RC1 is the first release of 1.3.0.

In this release we have commits from team members, and have also merged pull requests through github. If you want to make contributions to this project, don't forget to sign the contributor license agreement.

Thanks,

The Spring Python team

Release Notes - Version 1.1.1

Release Notes - Version 1.2.1

  • [SESPRINGPYTHONPY-159] - Add DatabaseTemplate argument checks to execute that are like the ones used in query operations
  • [SESPRINGPYTHONPY-161] - Add installation steps to Spring Python's documentation

Release Notes - Version 1.3.0.RC1

  • [SESPRINGPYTHONPY-159] - Add DatabaseTemplate argument checks to execute that are like the ones used in query operations
  • [SESPRINGPYTHONPY-161] - Add installation steps to Spring Python's documentation

Spring Python 1.2.0.RC1 is released!

Engineering | November 03, 2010 | ...

After many months of work, Spring Python's first 1.2 release is available.

The project has migrated its documentation to Sphinx, the same tool used for documenting the Python language itself. You can visit the project site and view it in HTML or download an epub version for viewing on a smart phone or tablet device.

This version of Spring Python transitions to Python 2.6, dropping support for 2.4 and 2.5. This means the team is gearing up to utilize many of the newer features of Python, which also paves the way to transition towards Python 3.x at some time in the future.

Spring Python has…

Mixing RabbitMQ with Spring Python

Engineering | September 20, 2010 | ...

RabbitMQ is a powerful messaging broker based on the Advanced Message Queueing Protocol (AMQP). In an earlier post, we looked into building a Python stock ticker program. We compared using RabbitMQ's pika with py-amqplib, and how it was easy to transition from one to the other with minimal changes.

In this article, we'll show how pika can easily be used by Spring Python. Spring Python is an implementation of the concepts of Spring with the language of Python. It includes many features such as dependency injection. If we choose to build a Spring-like application in Python, it is easy to utilize…

Building RabbitMQ apps using Python

Engineering | August 19, 2010 | ...

RabbitMQ is a powerful messaging broker based on the Advanced Message Queueing Protocol (AMQP). Thanks to the neutral nature of the AMQP spec, it is easy to connect to it from many platforms, including Python. In this blog entry, we will:

  • Create a simple stock ticker Python application
  • Create a brokerage Python application that decides when to buy and sell.
  • Compare pika, an AMQP library created by the RabbitMQ team, with py-amqplib.
You can find all the source code for this blog at http://github.com/gregturn/amqp-demo. This assumes you have already installed RabbitMQ based on instructions for your platform and fired it up. Personally, I have it running on my Mac OS X machine (snow leopard).

By the way:

The code written in this blog entry is for demonstration purposes only. Do not rely on the algorithms for financial advice.
With that out of the way, let's write some code!

Building the stock ticker

A good example for a messaging solution is a stock ticker system. The stock exchange publishes messages to the broker indicating stock name, price, and time.
import pickle
import random
import time

class Ticker(object):
    def __init__(self, publisher, qname):
        self.publisher = publisher

        # This quickly creates four random stock symbols
        chars = range(ord("A"), ord("Z")+1)
        def random_letter(): return chr(random.choice(chars))
        self.stock_symbols = [random_letter…

Spring Python 1.1 book is published

Engineering | May 24, 2010 | ...

The Spring Python 1.1 book is published! Spring Python takes the concepts of the Spring Framework and Spring Security, and applies them to the world of Python.

In this book, you will be writing code using dependency injection, aspect oriented programming, data access, transaction management, remoting and security. Later on in the first case study, you will be building a banking web app and see how using all these components in concert quickly meets your needs. In the second case study you will integrate Python and Java together as you build a flight reservation system.

The book is full of code…

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all