214 projects tagged "Python Modules"
MinimalModbus is an easy-to-use Python module for talking to instruments (slaves) from a computer (master) using the Modbus protocol. Example code includes drivers for Eurotherm and Omega process controllers. The only dependency is the pySerial module. This software supports the ‘Modbus RTU’ serial communication version of the protocol, and is intended for use on Linux, OS X, and Windows platforms. It has been tested with Python2.6, Python2.7, and Python3.2.
Chouwa is a library that aims to ease the integration of Jinja2 into Django projects. It does this by providing equivalents of some of django's helper methods that depend on its template subsystem, as well as providing built-in globals and filters and providing a mechanism for user applications to introduce their own globals and filters.
PyMultimethods is a library that enables users to create multimethods (a.k.a. generic functions) in Python. In other words, you can create multiple versions of the same function/method. The one that is invoked depends on the runtime parameters. This is similar to polymorphism in the sense that the object type determines which version of the function is invoked. Multimethods go beyond the polymorphism found in conventional object oriented languages, however, because all parameters are taken into account (as opposed to only the "implied this", as in C++ or Java). PyMultimethods can also be used to "overload" a function or method.
LEPL is a recursive descent parser library written in Python. It is based on parser combinator libraries popular in functional programming, but also exploits Python language features. Operators provide a friendly syntax, and the consistent use of generators supports full backtracking and resource management. Backtracking implies that a wide variety of grammars are supported; appropriate memoisation ensures that even left-recursive grammars terminate.
Relatorio is a Python opendocument templating library, based on Genshi. It provides a way to easily output severals kinds of files (odt, ods, png, svg, etc.) by using documents in any of the Open Document formats (and some others) as templates. It also includes a simple report repository.