wellapi 0.7.2__tar.gz → 0.7.4__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 (42) hide show
  1. {wellapi-0.7.2 → wellapi-0.7.4}/PKG-INFO +1 -1
  2. {wellapi-0.7.2 → wellapi-0.7.4}/pyproject.toml +1 -1
  3. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/build/cdk.py +8 -0
  4. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/local/server.py +3 -4
  5. {wellapi-0.7.2 → wellapi-0.7.4}/uv.lock +1 -1
  6. {wellapi-0.7.2 → wellapi-0.7.4}/.github/workflows/build.pipeline.yml +0 -0
  7. {wellapi-0.7.2 → wellapi-0.7.4}/.gitignore +0 -0
  8. {wellapi-0.7.2 → wellapi-0.7.4}/.python-version +0 -0
  9. {wellapi-0.7.2 → wellapi-0.7.4}/README.md +0 -0
  10. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/__init__.py +0 -0
  11. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/__main__.py +0 -0
  12. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/applications.py +0 -0
  13. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/awsmodel.py +0 -0
  14. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/build/__init__.py +0 -0
  15. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/build/packager.py +0 -0
  16. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/cli/__init__.py +0 -0
  17. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/cli/main.py +0 -0
  18. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/convertors.py +0 -0
  19. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/datastructures.py +0 -0
  20. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/dependencies/__init__.py +0 -0
  21. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/dependencies/models.py +0 -0
  22. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/dependencies/utils.py +0 -0
  23. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/exception_handlers.py +0 -0
  24. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/exceptions.py +0 -0
  25. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/local/__init__.py +0 -0
  26. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/local/router.py +0 -0
  27. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/middleware/__init__.py +0 -0
  28. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/middleware/base.py +0 -0
  29. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/middleware/cors.py +0 -0
  30. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/middleware/error.py +0 -0
  31. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/middleware/exceptions.py +0 -0
  32. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/middleware/main.py +0 -0
  33. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/models.py +0 -0
  34. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/openapi/__init__.py +0 -0
  35. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/openapi/docs.py +0 -0
  36. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/openapi/models.py +0 -0
  37. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/openapi/utils.py +0 -0
  38. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/params.py +0 -0
  39. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/routing.py +0 -0
  40. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/security.py +0 -0
  41. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/testclient.py +0 -0
  42. {wellapi-0.7.2 → wellapi-0.7.4}/src/wellapi/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wellapi
3
- Version: 0.7.2
3
+ Version: 0.7.4
4
4
  Summary: A simple web framework for aws lambda
5
5
  Author-email: romayuhym <romayuhym@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "wellapi"
3
- version = "0.7.2"
3
+ version = "0.7.4"
4
4
  description = "A simple web framework for aws lambda"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -149,6 +149,14 @@ class WellApiCDK(Construct):
149
149
  ],
150
150
  )
151
151
 
152
+ self.lambda_role.add_to_policy(
153
+ iam.PolicyStatement(
154
+ effect=iam.Effect.ALLOW,
155
+ actions=["sqs:ListQueues", "sqs:SendMessage"],
156
+ resources=["*"],
157
+ )
158
+ )
159
+
152
160
  lmbd: Lambda
153
161
  for lmbd in wellapi_app.lambdas:
154
162
  lambda_function = _lambda.Function(
@@ -1,5 +1,6 @@
1
1
  import json
2
2
  import tomllib
3
+ from urllib.parse import parse_qsl
3
4
 
4
5
  from wellapi.local.router import Router
5
6
 
@@ -164,10 +165,8 @@ def create_api_event(method, path, body, headers_row, query_string):
164
165
  # Парсимо query параметри
165
166
  if query_string:
166
167
  query_params = {}
167
- for param in query_string.split("&"):
168
- if "=" in param:
169
- key, value = param.split("=")
170
- query_params.setdefault(key, []).append(value)
168
+ for key, value in parse_qsl(query_string, keep_blank_values=True):
169
+ query_params.setdefault(key, []).append(value)
171
170
  event["multiValueQueryStringParameters"] = query_params
172
171
  else:
173
172
  event["multiValueQueryStringParameters"] = {}
@@ -410,7 +410,7 @@ wheels = [
410
410
 
411
411
  [[package]]
412
412
  name = "wellapi"
413
- version = "0.7.2"
413
+ version = "0.7.4"
414
414
  source = { editable = "." }
415
415
  dependencies = [
416
416
  { name = "email-validator" },
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