Connect systems via Redis, AWS SQS and SNS
Provides higher level interfaces to work with data producers and consumers. plumb supports three backends: Redis, Amazon SQS and SNS services, and a memory implmentation (designed to be a testing artifact).
The focus is on python 3 and boto3 (for AWS support).
plumb uses the concepts of Source and Sink to abstract the backend. Data is transfered encoded in JSON, and by default compressed using zlib.
To fetch raw packages use a “Package Source” object, which handles a backend connection and its configuration and exposes a “get()” method. Similarly, a “Package Sink” object exposes a “put(pkg)” method.
The library is provided with unit tests and integration tests for Redis and AWS. To run the unit tests:
python setup.py test
or using nose:
The integration tests can be run using nose:
Keep in mind that boto3 will fetch your AWS credentials. It currently tries the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, then tries the ~/.aws directory. For details, see Boto3 Credentials Configuration.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|plumb-0.9.1-py3-none-any.whl (9.9 kB) Copy SHA256 Checksum SHA256||py3||Wheel||Nov 30, 2017|
|plumb-0.9.1.tar.gz (6.0 kB) Copy SHA256 Checksum SHA256||–||Source||Nov 30, 2017|