Luc Stepniewski's Blog
Luc Stepniewski's Blog
Skip to content
  • About
  • Author
  • Privacy Policy

python

There are 4 posts tagged python (this is page 1 of 1).

How to make the simplest unittests in Python

Testing your code is nearly a requirement (even more so in Ruby). Unittests are now the most vital elements for evaluating the quality/viability of a project. I was a little jealous of Ruby where you don’t have so much to write to implement unittests. Here is a simple example: require “mymodule” require “test/unit” class TestMyModule […]

in python, ruby | 376 Words

Default behaviour in implementation of STOMP protocol in RabbitMQ with python

Why STOMP? Why STOMP, and not directly AMQP, as I’m using RabbitMQ. No real reason, but the fact that there are less dependencies on a STOMP client, as it’s just a socket with text sent. Implementations There are several implementations of the STOMP protocol for Python. The module I chose is python-stomp (version 0.2.9), from […]

in network, python, rabbitmq | 465 Words

How to dial a number using Asterisk and Python

I didn’t find any example in Python on how to Dial a number from an Asterisk server and link it to another channel. So here’s a quick code to do it. You just need to have a manager defined in your /etc/asterisk/manager.conf defined. import socket   HOST=”192.168.1.116″ PORT=5038   p = “””Action: login Events: off […]

in asterisk, python, voip | 176 Words

Making and deploying a Twisted project as a service under Windows

What is the goal? The goal is to implement a program in Python+Twisted (using PB for network access) under Windows XP or 2000+, that can be run before a user logs on, so it has to be a windows service, launched automatically, at boot. Another goal is to show some developement patterns in Twisted. You […]

in python, software, twisted | 4,072 Words

Archives

  • December 2024
  • September 2018
  • January 2016
  • February 2014
  • February 2013
  • December 2012
  • December 2011
  • December 2010
  • September 2010
  • August 2010
  • January 2010
  • December 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • September 2008
  • April 2008
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • September 2006
  • June 2005
  • February 2004
  • December 2003
  • November 2003

Meta

  • Log in
Independent Publisher empowered by WordPress