The Python Adaptation of the PubSubLib for Orange Health
Project description
pubsublib
pubsublib is a Python library designed for PubSub functionality using AWS - SNS & SQS.
PIP Package
Getting Started
To get started with pubsublib, you can install it via pip:
pip install pubsublib
Using Pubsublib
Once pubsublib is installed, you can use it in your Python code as follows:
from pubsublib.aws.main import AWSPubSubAdapter
pubsub_adapter = AWSPubSubAdapter(
aws_region='XXXXX',
aws_access_key_id='XXXXX',
aws_secret_access_key='XXXXX',
redis_location='XXXXX',
sns_endpoint_url=None,
sqs_endpoint_url=None
)
Using AWS IAM Roles for Service Accounts
When using IAM Roles for Service Accounts (IRSA), pass aws_access_key_id and aws_secret_access_key as empty strings so that the AWS SDK uses its default credential provider chain (which will pick up the service account role). You should still provide a valid aws_region here, or ensure that AWS_REGION or AWS_DEFAULT_REGION is set in the environment or shared AWS config when omitting it.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pubsublib-0.1.21.tar.gz.
File metadata
- Download URL: pubsublib-0.1.21.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
596feb20f81b71a770590f67782d3867774e5cf614480253027e8f5af672f5db
|
|
| MD5 |
d00d4462aeb6245a0ca0f937d9382735
|
|
| BLAKE2b-256 |
57c9c5bbf2e0c57b368b1cf4dc1e9e5fb901258b7091412510d61bce39d18f36
|
File details
Details for the file pubsublib-0.1.21-py3-none-any.whl.
File metadata
- Download URL: pubsublib-0.1.21-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eedc2360e6f980756cd381d675df9c7a5cd9a20dcf83d90d7979aee5f14f667
|
|
| MD5 |
b00de11594a5813a03846ab5dd2b4c47
|
|
| BLAKE2b-256 |
834b23f1328ae47e320565692e7110c8be2ccecfc0813c3c97a305f0d6d6e434
|