Skip to main content

Asynchronous clients for AWS and Pusher

Project description

Master CI:

master-build coverage-master

Downloads:

http://pypi.python.org/pypi/pulsar-cloud

Source:

https://github.com/quantmind/pulsar-cloud

Mailing list:

google user group

Design by:

Quantmind and Luca Sbardella

Platforms:

Linux, OSX, Windows. Python 3.4 and above

Keywords:

amazon, aws, botocore, pusher, websocket, async, pulsar, greenlet

Requirements

Botocore

This library provides two asynchornous implementations of botocore.

Asyncio Botocore

The first implementation uses asyncio from the python standard libray only:

from cloud.aws import AsyncioBotocore

s3 = AsyncioBotocore('s3', 'us-east-1')
s3 = yield from s3.put_object(...)

Green Botocore

The second implementation, build on top of asyncio botocore, uses pulsar and greenlet to obtain an implicit asynchronous behaviour.

Usage:

from cloud.aws import GreenBotocore
from pulsar.apps.greenio import GreenPool

def execute():
    s3 = GreenBotocore('s3', 'us-east-1')
    ec2.put_object(...)

pool = GreenPool()
yield from pool.submit(execute)

S3 uploader script

Usage:

s3upload <path> -b bucket/my/location

Pusher

A client and server pusher implementation using pulsar asynchronous framework. Create a pusher instance

from cloud import Pusher

pusher = Pusher(app_id, key, secret)

Subscribe to a channel as a client

channel = yield from pusher.subscribe('test_channel')
channel.bind('event', mycallback)

Project details


Download files

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

Source Distribution

pulsar-cloud-0.4.2.tar.gz (15.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page