Skip to content

Commit

Permalink
Merge pull request #1 from winglang/0.0.2
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
eladcon authored Jun 5, 2024
2 parents b11a3a8 + cf8c3af commit 5a35970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[project]
name = "wingsdk"
version = "0.0.1"
version = "0.0.2"
description = "Wing SDK in Python"
authors = [{name = "Elad Cohen", email = "[email protected]"}]
readme = "README.md"

[tool.poetry]
name = "wingsdk"
version = "0.0.1"
description = "Wing SDK in Python"
authors = ["eladc <[email protected]>"]
readme = "README.md"

Expand Down
10 changes: 5 additions & 5 deletions wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __init__(self, props: dict):
aws_secret_access_key=connection["clientConfig"]["credentials"]["secretAccessKey"],
))

class SNSMobileClient_sim:
class SNSMobileNotifications_sim:
def __init__(self, store: BucketClient_sim):
self.store = store

Expand All @@ -147,7 +147,7 @@ def publish(self, **kwargs):
"MessageId": id,
}

class SNSMobileClient_aws:
class SNSMobileNotifications_aws:
def __init__(self, client: boto3.client = None):
self.client = client or boto3.client('sns')

Expand Down Expand Up @@ -205,11 +205,11 @@ def create_client(idValue: dict):
return DynamodbTableClient_aws(idValue["props"])
elif target == "sim":
return DynamodbTableClient_sim(idValue["props"])
if idValue["type"] == "@winglibs.sns.MobileClient":
if idValue["type"] == "@winglibs.sns.MobileNotifications":
if target == "aws":
return SNSMobileClient_aws(idValue["props"])
return SNSMobileNotifications_aws(idValue["props"])
elif target == "sim":
return SNSMobileClient_sim(create_client(idValue["children"]["store"]))
return SNSMobileNotifications_sim(create_client(idValue["children"]["store"]))
if idValue["type"] == "@winglibs.ses.EmailService":
if target == "aws":
return SESEmailService_aws(idValue["props"])
Expand Down

0 comments on commit 5a35970

Please sign in to comment.