Poised Solutions

Python Developer

poised solutions
IT consultancy and software house
Library Poised Solutions

Python Developer

Python Developer

Python is a high level, dynamic object oriented programming language. Python is a very general programming language allowing the programmer to concentrate on the problem at hand as opposed to keeping track of computer internals (such as memory). Python is a RAD (Rapid Application Development) language, that allows for high productivity gains over languages. Python encourages the development of high quality, maintainable code, and as such is a firm favourite of Poised Solutions.

Python was developed in the late 1980s by Guido van Rossum, whilst working at CWI (Centrum voor Wiskunde en Informatica) - the National Research Institute for Mathematics and Computer Science in the Netherlands. Python today has a very strong following primarily in the computer science world, though a lot of business is waking up to the usefulness of Python, and early adopters of Python have been NASA and ILM. Python is used extensively as in internal language in Google, and Python can be found in most major IT shops in the world. Python is a language programmers quickly turn to develop solution, and analyse problems.

Python Development is fast becoming the standard form of development for complex stable systems that have to be delivered on time and on budget, as someone once said; “If you are not using Python you are only hurting yourself.”


Python Uses

Python is a general purpose programming language, it can be used for a myriad of tasks, such as text and file manipulation, web application servers, database interfacing and distributed computing.

Python is not a system level programming language in as much as direct manipulation of system resources is abstracted. Python is extendible and embeddable (better extended), so C programs can be written that have an API to Python modules.

The real beauty of Python lies in the maintainability of the code and cleanness of the source code. A lot of syntactic noise is not evident in Python code, Python is a dynamic language so everything is represented as an object and types are assigned at run time.

Python has some very powerful introspection tools, these allow for quick understanding of modules and to see what functions and data the modules offer, this is great for team programming.


Python Example Code

#!/usr/bin/env python
#-----------------------------------------------------------
#            _   _
#  _ __ _  _| |_| |_  ___ _ _    _ __ _  _
# | '_ \ || |  _| ' \/ _ \ ' \ _| '_ \ || |
# | .__/\_, |\__|_||_\___/_||_(_) .__/\_, |
# |_|   |__/                    |_|   |__/
#
#-----------------------------------------------------------
# File      : python.py
# Author    : Richard Lewis
# Project   : /mnt/webbeastie/proj/poisedsolutions/lib/code/
# Syntax    : python
# Date      : Sun 12 Jul 2009
# Copyright : Richard Lewis 2009
#-----------------------------------------------------------
# python.py - example python code
#-----------------------------------------------------------

import sys
#-----------------------------------------------------------

class Dispatcher:
    """Command Dispatcher Class"""

    def __init__( self, command, data ):
        """Initialise Dispatch Instance"""

        self.command  = command
        self.data     = data
    #-------------------------------------------------------

    def do_introspect( self ):
        """Call Introspect Method"""

        introspect( self )
    #-------------------------------------------------------

    def do_display_data( self ):
        """Call Display Data Method"""

        display_data( self.data )
    #-------------------------------------------------------

    def error( self ):
        """Dispatcher Error"""

        print "Error in dispatch: %s not found." % (
            self.command )
    #-------------------------------------------------------

    def dispatch( self ):
        """Dispatch"""

        method_name = 'do_' + self.command

        if hasattr( self, method_name ):
            method = getattr( self, method_name )
            method()
        else:
            self.error()
#-----------------------------------------------------------

def introspect( object ):
    """Introspect Object"""

    print "%s : %s" % (
        introspect.__doc__, object.__class__ )
    print

    for i in dir( object ):
        print i
    print
#-----------------------------------------------------------

def display_data( data ):
    """Display Data"""

    print "%s : %s" % (
        display_data.__doc__, data.__class__ )
    print
    #-------------------------------------------------------

    # print raw data
    print data
    print
    #-------------------------------------------------------

    # list or tuple
    try:
        print "Trying to display list or tuple."
        print
        for item in data:
            print item
        print
    except:
        pass
    #-------------------------------------------------------

    # dictionary
    try:
        print "Trying to display dictionary."
        print
        for key, value in data.iteritems():
            print "%s : %s" % (
                key, str ( value ) )
        print
    except:
        pass
    #-------------------------------------------------------

    # object
    try:
        print "Trying to display object."
        print
        for item in dir( data ):
            print item
        print
    except:
        pass
#-----------------------------------------------------------

def display_arguments():
    """Display Arguments"""

    print display_arguments.__doc__
    print

    print "Program Name : %s" % sys.argv[0]

    for arg_count in xrange( 1, len( sys.argv ) ):
        print "Argument %2d  : %s" % (
            arg_count, sys.argv[ arg_count ] )
    print
#-----------------------------------------------------------

def create_dict( **keywords ):
    """Create Dictionary"""

    return keywords
#-----------------------------------------------------------

def main():
    """Python Example Code"""

    print main.__doc__
    print

    display_arguments()

    control = Dispatcher( 'introspect', [ 1, 2, 3, 5, 7] )

    control.dispatch()

    control.command = 'display_data'

    control.dispatch()

    control.data = create_dict(
        one   = 1,
        two   = 2,
        three = 3,
        four  = 4,
        five  = 5
    )

    control.dispatch()
#-----------------------------------------------------------

if __name__ == "__main__":
    main()
#-----------------------------------------------------------

Python Development Services Poised Solutions

DevelopmentWeb Development
DevelopmentWeb Development
Ecommerce DevelopmentApplication DevelopmentDaemon Development
Ecommerce DevelopmentApplication DevelopmentDaemon Development
GUI DevelopmentDatabase DevelopmentRDBMS DevelopmentLDAP Development
GUI DevelopmentDatabase DevelopmentRDBMS DevelopmentLDAP Development

Python Resources

Python Resources
Python















Poised Solutions Python Developer for Hire. If you have a Python project then Poised Solutions has the development skills to make that project into a reality. Get in contact with Poised Solutions to discuss your IT Project today.

Poised Solutions Web Design and Web Development by Poised Solutions