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.
Files changed (21) hide show
  1. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/PKG-INFO +1 -1
  2. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/sns.py +3 -2
  3. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/sqs.py +3 -2
  4. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/google/pubsub.py +2 -2
  5. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/protocols.py +1 -1
  6. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/PKG-INFO +1 -1
  7. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/pyproject.toml +1 -1
  8. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/LICENSE +0 -0
  9. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/README.md +0 -0
  10. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/__init__.py +0 -0
  11. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/__init__.py +0 -0
  12. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/amazon/s3.py +0 -0
  13. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/factory.py +0 -0
  14. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/google/__init__.py +0 -0
  15. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloud/google/storage.py +0 -0
  16. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/SOURCES.txt +0 -0
  17. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/dependency_links.txt +0 -0
  18. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/requires.txt +0 -0
  19. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/cloudtoolbox.egg-info/top_level.txt +0 -0
  20. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/setup.cfg +0 -0
  21. {cloudtoolbox-0.3.0 → cloudtoolbox-0.4.0}/tests/test_factory.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudtoolbox
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Toolbox for the cloud.
5
5
  Author-email: Dotz Developers <devs-dotz@dotz.com>
6
6
  Project-URL: Repository, https://github.com/DotzInc/cloud-toolbox
@@ -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) -> None:
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) -> None:
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) -> None:
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()
@@ -25,4 +25,4 @@ class StorageURLSigner(Protocol):
25
25
 
26
26
  @runtime_checkable
27
27
  class MessagePublisher(Protocol):
28
- def publish(self, recipient: str, message: str, **attrs: Any) -> None: ...
28
+ def publish(self, recipient: str, message: str, **attrs: Any) -> str: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudtoolbox
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Toolbox for the cloud.
5
5
  Author-email: Dotz Developers <devs-dotz@dotz.com>
6
6
  Project-URL: Repository, https://github.com/DotzInc/cloud-toolbox
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cloudtoolbox"
7
- version = "0.3.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