This release is a pre-release and may not be stable for production use.
AWS SNS/SQS Adapter
This Adapter is based on Django and provides a way to publish messages to AWS SNS/SQS.
The default configuration creates a single SNS Topic on which a single SQS Queue subscribes for new messages.
An example SQS consumer is also available.
It is meant to be used with Herbie.
Installation
The package already provides a Django app that just needs to be registered in the main Django app using Herbie.
- Run the following
pip install herbie-aws-sns-sqs-adapter
or add it to your app requirements.txt and update them running:
pip install -r requirements.txt
- Add the adapter App to Django Installed Apllications:
INSTALLED_APPS = [
...
'aws_sns_sqs_adapter.apps.HerbieAwsSnsSqsAdapterConfig',
...
]
- Configure the AWS environment variables:
AWS_ACCESS_KEY_ID="access_key",
AWS_SECRET_ACCESS_KEY="secret_key",
AWS_SQS_SNS_ENDPOINT_URL="sns_sqs_endpoint",
AWS_SQS_SNS_REGION="sns_sqs_region",
- Run command to create the SNS/SQS Topics/Queues according to the schemas available. This command will create 1 SNS Topic and 1 SQS Queue per schema available; the queue will subscribe to the respective created topic.
python manage.py init_sns_sqs
An example Django application using this adapter can be found at the Herbie Sandbox repository.
Developing/Testing
If you would like to further improve this package you'll need to install the dev/test requirmeents.
To to this run in your virtual environment
pip install -e .[tests]
This will install the needed packages (e.g: pytest) to run/test locally the package
Black Formatter
This package uses Black as a code formatter. You should run it before pushing the code as the CI pipeline checks against it.
black --line-length 119 .
Metadata
Release files for herbie-aws-sns-sqs-adapter 1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| herbie-aws-sns-sqs-adapter-1.0b1.tar.gz | 8.3 kB | Without provenance | Details for herbie-aws-sns-sqs-adapter-1.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| herbie_aws_sns_sqs_adapter-1.0b1-py3-none-any.whl | Python 3 | none | any | Details for herbie_aws_sns_sqs_adapter-1.0b1-py3-none-any.whl |
Total release size: 16.8 kB
Release files / herbie-aws-sns-sqs-adapter-1.0b1.tar.gz
| Download URL | herbie-aws-sns-sqs-adapter-1.0b1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cb28441ac8f2d25b53e108cfbfc276ad7f3e6dc13597e73399b9226a464281d
|
|
BLAKE2b-256 checksum How to use checksums |
72e722b109954a5978b982691f5934d6f897ceda9af1b4c7d4b194e5610f0228
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2
|
Release files / herbie_aws_sns_sqs_adapter-1.0b1-py3-none-any.whl
| Download URL | herbie_aws_sns_sqs_adapter-1.0b1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e26ae1b73f5846d7f569151924568b15a03a503fc2841d9654d8ab84ca4f85af
|
|
BLAKE2b-256 checksum How to use checksums |
66e91d76232880f640bfb1e703ec22fb274c93de800d3c3b9e2b14dd5de61c93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2
|
Security for herbie-aws-sns-sqs-adapter 1.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.