PacketLogic has predefined user interfaces that are powerful and easy to use, such as the client and the Webstatistics. However, when the need arises to do something that is not defined in those interfaces, they are not possible for the end user to modify or customize. This is when using an API is very effective. Using the PacketLogic Python API provides access to virtually all the functionality available in the existing user interfaces, but with full possibilities to customize, integrate, and otherwise adapt the interface according to local and site-specific requirements. The PacketLogic Python API is implemented as a Python module, which means writing scripts to interface with a PacketLogic unit is a matter of:
1. Installing Python Python is available for free for all major operating systems.
2. Installing the API The API is available for free as a download from Procera Networks, on Windows and Linux operating systems.
3. Writing scripts
Read the rest of this entry »
Welcome to the Python for XBMC Tutorial! This project began one day when I discovered XBMC (XBox Media Center) supports scripts written in Python. Darkie made the port, and I’d like to thank him for his great work and support! (I harassed him with questions and feature suggestions and he was always nice enough to reply to the questions and to add the features.) Curious, I decided to try to use this scripting language to display some basic stuff.
Read the rest of this entry »
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
Read the rest of this entry »
This book shows you how to write programs for the MRG Messaging component of the Red Hat Enterprise MRG distributed computing platforming using the Apache Qpid API. It also gives basic information on downloading and installing MRG Messaging. For more complete information on how to download and install MRG Messaging see the MRG Messaging Installation Guide.
Read the rest of this entry »
Web Services Description Language (WDSL), originally developed by IBM, Microsoft, and others, is an XML format for technical description of Web services. In this tutorial, Mike Olson and Uche Ogbuji introduce WSDL4Py, an open-source Python library for WSDL 1.1 hosted by IBM developerWork’s open-source zone. Usage of the library is explained, as well as discussion of its development.
Read the rest of this entry »
While we are enormously pleased with Python as a programming language for introductory classes, we did note a few issues which were awkward or confusing to Intro students. We want to make it clear in discussing these issues that we are only speaking from the point of view of novice programmers. Experienced programmers might well have very different views.
Read the rest of this entry »
This tutorial provides a short introduction to developing with Zope 3. It provides an example of creating a content objects and associated views, adapters, and utilities. The skills learned here are applied in most facets of Zope 3 development.
We Zope to be much more approachable to Python programmers. You should be able to use existing Python objects in Zope with few changes. We want developers to be able to learn Zope a little bit at a time. We provide greater support for reuse through components.
Read the rest of this entry »
Threads play a major role in applications programming today. For example, most Web servers are threaded, as are many Java GUI programs. Here are the major settings in which using threads has been founded convenient and/or efficient:
• Programs with asynchronous events:
Here the program must be ready for various events, but does not know the order in which they might occur. For example, in Sections 3.1 and 3.2, we have a network server connected to several clients. The server does not know from which client the next message will arrive. So, we have the server create a separate thread for each client, with each thread handling only its client.
Read the rest of this entry »