Skip to main content

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']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ampy, version 1.2.6
Filename, size File type Python version Upload date Hashes
Filename, size ampy-1.2.6.tar.gz (35.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page