Milinda Pathirage’s Blog

Let the code talk for yourself!

Entries Tagged as 'python'

inotify - Linux File System Activity Monitoring

November 10th, 2008 · No Comments · c programming, linux, linux tips, php, programming, python, ruby

inotify is a Linux kernel subsystem which monitors Linux file system operations, such as read, write, create and delete. It was included in the mainline kernel from release 2.6.13 (June 18, 2005). It is more efficient than busy polling from a corn job and it’s an extensions to Linux file system to capture the file [...]

[Read more →]

Tags:

Beauty of Python Part 2: First Class Functions

August 8th, 2008 · 1 Comment · python

In this post I am going to describe first feature from the list of Python features I have mentioned in the previous article.

What is meant by saying functions are first-class?
This means that the language consider functions are values, just like any other data type; they can be created during the execution of a program, passed [...]

[Read more →]

Tags:

Beauty of Python Part 1: Introduction

August 6th, 2008 · 1 Comment · python

hile doing some research about Python modules and namespaces I found this nice presentation about features provide by Python but not available in language like Java. I though it will be a great thing if I can do some research on these features and write aseries of blog posts to describe the advantages and disadvantage(if [...]

[Read more →]

Tags:

Consuming Web Services in Python

August 5th, 2008 · No Comments · python, wsf-python, wso2

Here is a sample client that I write to test WSF/Python 1.0.0alpha implementation. It talks to yahoo REST search API using WSF/Python.

#!/usr/bin/env python
 
import wso2.wsf
 
LOG_DIR = ‘/tmp/’
LOG_LEVEL = 4
WSFC_HOME = ‘/home/milinda/wsfc’
END_POINT = ‘http://search.yahooapis.com/WebSearchService/V1/webSearch’
 
if __name__ == ‘__main__’:
message = """
 
ApacheRestDemo
[...]

[Read more →]

Tags:

Python 2.5 C API doesn’t support convertion of PyFloatObject, PyIntObject and PyLongObject to PyStringObject

August 4th, 2008 · No Comments · python

These days I am developing WSF/Python which is a Python extension for consuming and providing Web Services in Python. This extension is develop based WSF/C which is a standards compliant, enterprise grade, open source, C library for providing and consuming Web services in C.

While implementing WSDL support for WSF/Python, I have to convert Python [...]

[Read more →]

Tags:

WSO2 Web Services Framework for Python 1.0.0alpha released

July 25th, 2008 · No Comments · python, wsfc, wso2

WSF/Python is the Python language extension to WSO2 WSF/C. This enables you to consume/provide Web Services both with SOAP and REST.
You can download this release from: http://ww2.wso2.org/~milinda/wsf_python1.0.0alpha/WSF-Python-1.0.0alpha.tar.bz2

WSF/Python project home page: http://wso2.org/projects/wsf/python

Sphere: Related Content

[Read more →]

Tags:

The importance of Ruby’s method missing concept

July 21st, 2008 · 1 Comment · python, ruby

To be frankly, I don’t have any previous experience with Ruby programming. I first looked at Ruby code(WSF/Ruby source), when I started to write WSF/Python and WSF/Python is still in its initial stage. When I started to implement WSDL mode for WSF/Python, to understand how it has done in WSF/Ruby, I looked at WSF/Ruby source. [...]

[Read more →]

Tags: