cloudtoolbox 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/PKG-INFO +1 -1
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/sns.py +3 -2
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/sqs.py +3 -2
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/google/pubsub.py +2 -2
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/protocols.py +1 -1
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/PKG-INFO +1 -1
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/pyproject.toml +1 -1
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/LICENSE +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/README.md +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/__init__.py +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/__init__.py +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/s3.py +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/factory.py +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/google/__init__.py +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/google/storage.py +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/SOURCES.txt +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/dependency_links.txt +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/requires.txt +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/top_level.txt +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/setup.cfg +0 -0
- {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/tests/test_factory.py +0 -0
|
@@ -7,5 +7,6 @@ class Publisher:
|
|
|
7
7
|
def __init__(self, *args: Any, **kwargs: Any):
|
|
8
8
|
self.client = boto3.client("sns", *args, **kwargs)
|
|
9
9
|
|
|
10
|
-
def publish(self, recipient: str, message: str, **attrs: Any) ->
|
|
11
|
-
self.client.publish(TargetArn=recipient, Message=message, **attrs)
|
|
10
|
+
def publish(self, recipient: str, message: str, **attrs: Any) -> str:
|
|
11
|
+
response = self.client.publish(TargetArn=recipient, Message=message, **attrs)
|
|
12
|
+
return response["MessageId"]
|
|
@@ -7,5 +7,6 @@ class Publisher:
|
|
|
7
7
|
def __init__(self, *args: Any, **kwargs: Any):
|
|
8
8
|
self.client = boto3.client("sqs", *args, **kwargs)
|
|
9
9
|
|
|
10
|
-
def publish(self, recipient: str, message: str, **attrs: Any) ->
|
|
11
|
-
self.client.send_message(QueueUrl=recipient, MessageBody=message, **attrs)
|
|
10
|
+
def publish(self, recipient: str, message: str, **attrs: Any) -> str:
|
|
11
|
+
response = self.client.send_message(QueueUrl=recipient, MessageBody=message, **attrs)
|
|
12
|
+
return response["MessageId"]
|
|
@@ -7,6 +7,6 @@ class Publisher:
|
|
|
7
7
|
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
8
8
|
self.client = pubsub_v1.PublisherClient(*args, **kwargs)
|
|
9
9
|
|
|
10
|
-
def publish(self, recipient: str, message: str, **attrs: Any) ->
|
|
10
|
+
def publish(self, recipient: str, message: str, **attrs: Any) -> str:
|
|
11
11
|
future = self.client.publish(recipient, data=message.encode(), **attrs)
|
|
12
|
-
future.result()
|
|
12
|
+
return future.result()
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cloudtoolbox"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "Toolbox for the cloud."
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
authors = [{ name = "Dotz Developers", email = "devs-dotz@dotz.com" }]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|