Skip to main content

Actions Status Python 3.7 PyPI version License: MIT Language grade: Python Twitter Follow

Publish Data Event to SNS Topic

This package helps you to publish a dict object as JSON into SNS Topic, including fields as attributes

pip install publish-event-sns
from publish_event_sns import publish


my_dict = {
    "foo": "bar"
}

response = publish("topic_name", my_dict)

This code will transform DICT into JSON and publish into SNS Topic with foo as attribute as bar value.

publish function will automaticaly exclude from attributes non primitive values (dict, object, etc)

Parameters

Some aditional configuration is possible while publishing event:

  • region_name: Region name to use in internal boto3 client;
  • session: If you need to provide a existing boto3 session
  • attr_exclude: A list of fields to force exclusion while including fields as attributes

Metadata

Release files for publish-event-sns 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for publish-event-sns 0.0.3
File Size Uploaded Provenance Actions
publish_event_sns-0.0.3.tar.gz 2.7 kB Without provenance Details for publish_event_sns-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for publish-event-sns 0.0.3
File Interpreter ABI Platform Actions
publish_event_sns-0.0.3-py3-none-any.whl Python 3 none any Details for publish_event_sns-0.0.3-py3-none-any.whl

Total release size: 6.6 kB

Release files / publish_event_sns-0.0.3.tar.gz

Download URL publish_event_sns-0.0.3.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f605596ae4ae06471d292e105e4cfd2cd8a572d28660451a822f0d1eca60f142
BLAKE2b-256 checksum
How to use checksums
619d4f48f7130106b26ec432db863df20c840b3baa5100f5ead97dd8880657c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

Release files / publish_event_sns-0.0.3-py3-none-any.whl

Download URL publish_event_sns-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40702696cdc0b28fb726873b6643265c1727680efac939d54d73b77ce3c08ec7
BLAKE2b-256 checksum
How to use checksums
2870f2a9fb761a6dc7c504784648bb187c001fb3cf75ca83166c583193ac95bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

Security for publish-event-sns 0.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page