Asynchronous clients for AWS and Pusher
Project description
- Badges:
- Master CI:
- Downloads:
- Source:
- Mailing list:
- Design by:
- Platforms:
Linux, OSX, Windows. Python 3.5 and above
- Keywords:
amazon, aws, botocore, pusher, websocket, async, pulsar, greenlet
Requirements
Botocore
This library provides two asynchronous implementations of botocore.
Some part of the module are taken from aiobotocore - apache LICENSE.
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 = await 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()
await pool.submit(execute)
S3 uploader
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 = await pusher.subscribe('test_channel')
channel.bind('event', mycallback)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pulsar_cloud-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e38c08f778506a11ccd19692c36d7d11f88c30a28f54cd90588c38f5b7c3eab |
|
MD5 | 73cc0c649e8a497da7db2671892f4d0c |
|
BLAKE2b-256 | bdd38b14d7fd81487a2af41a50125d9b40dc00792e1b4d13831bb5b808b9828d |