Ampy - The pure-Python AMP library
Project Description
Ampy, the pure-Python AMP client and server
Ampy is an AMP library that provides a syncronous, blocking interface for making AMP calls (client interface).
It also provides an asyncore-based asynchronous API for making non-blocking servers and clients.
Synchronous Client Example:
from ampy import ampy class Sum(ampy.Command): arguments = [('a', ampy.Integer()), ('b', ampy.Integer())] response = [('total', ampy.Integer())] proxy = ampy.Proxy('localhost', 1234) proxy.connect() result = proxy.callRemote(Sum, a=5, b=10) print "TOTAL:", result['total']
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size & hash SHA256 hash help | File type | Python version | Upload date |
---|---|---|---|
ampy-1.2.6.tar.gz (35.2 kB) Copy SHA256 hash SHA256 | Source | None | Apr 2, 2013 |