api-foundry 0.1.8__tar.gz → 0.1.9__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.

Potentially problematic release.


This version of api-foundry might be problematic. Click here for more details.

Files changed (72) hide show
  1. {api_foundry-0.1.8 → api_foundry-0.1.9}/PKG-INFO +1 -1
  2. {api_foundry-0.1.8/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging → api_foundry-0.1.9}/api_foundry/iac/pulumi/api_foundry.py +14 -1
  3. {api_foundry-0.1.8 → api_foundry-0.1.9}/pyproject.toml +1 -1
  4. {api_foundry-0.1.8 → api_foundry-0.1.9}/.gitignore +0 -0
  5. {api_foundry-0.1.8 → api_foundry-0.1.9}/LICENSE +0 -0
  6. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/__init__.py +0 -0
  7. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/adapters/adapter.py +0 -0
  8. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/adapters/case_change_adapter.py +0 -0
  9. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/adapters/gateway_adapter.py +0 -0
  10. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/cloudprints/archive_builder.py +0 -0
  11. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/cloudprints/hash_comparator.py +0 -0
  12. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/cloudprints/pulumi/lambda_.py +0 -0
  13. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/cloudprints/pulumi/log_group.pv +0 -0
  14. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/cloudprints/pulumi/rest_api.py +0 -0
  15. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/cloudprints/python_archive_builder.py +0 -0
  16. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/connectors/connection.py +0 -0
  17. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/connectors/connection_factory.py +0 -0
  18. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/connectors/oracle_connector.py +0 -0
  19. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/connectors/postgres_connection.py +0 -0
  20. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/dao.py +0 -0
  21. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/operation_dao.py +0 -0
  22. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_custom_query_handler.py +0 -0
  23. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_delete_query_handler.py +0 -0
  24. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_insert_query_handler.py +0 -0
  25. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_query_handler.py +0 -0
  26. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_select_query_handler.py +0 -0
  27. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_subselect_query_handler.py +0 -0
  28. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/dao/sql_update_query_handler.py +0 -0
  29. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/iac/gateway_spec.py +0 -0
  30. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/iac/handler.py +0 -0
  31. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/operation.py +0 -0
  32. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/scripts/postgres_to_openapi.py +0 -0
  33. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/services/service.py +0 -0
  34. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/services/transactional_service.py +0 -0
  35. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/utils/app_exception.py +0 -0
  36. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/utils/logger.py +0 -0
  37. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/utils/model_factory.py +0 -0
  38. {api_foundry-0.1.8 → api_foundry-0.1.9}/api_foundry/utils/spec_handler.py +0 -0
  39. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/__init__.py +0 -0
  40. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/adapters/adapter.py +0 -0
  41. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/adapters/case_change_adapter.py +0 -0
  42. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/adapters/gateway_adapter.py +0 -0
  43. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/cloudprints/archive_builder.py +0 -0
  44. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/cloudprints/hash_comparator.py +0 -0
  45. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/cloudprints/pulumi/lambda_.py +0 -0
  46. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/cloudprints/pulumi/log_group.pv +0 -0
  47. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/cloudprints/pulumi/rest_api.py +0 -0
  48. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/cloudprints/python_archive_builder.py +0 -0
  49. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/connectors/connection.py +0 -0
  50. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/connectors/connection_factory.py +0 -0
  51. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/connectors/oracle_connector.py +0 -0
  52. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/connectors/postgres_connection.py +0 -0
  53. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/dao.py +0 -0
  54. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/operation_dao.py +0 -0
  55. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_custom_query_handler.py +0 -0
  56. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_delete_query_handler.py +0 -0
  57. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_insert_query_handler.py +0 -0
  58. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_query_handler.py +0 -0
  59. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_select_query_handler.py +0 -0
  60. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_subselect_query_handler.py +0 -0
  61. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/dao/sql_update_query_handler.py +0 -0
  62. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/iac/gateway_spec.py +0 -0
  63. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/iac/handler.py +0 -0
  64. {api_foundry-0.1.8 → api_foundry-0.1.9/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging}/api_foundry/iac/pulumi/api_foundry.py +0 -0
  65. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/operation.py +0 -0
  66. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/scripts/postgres_to_openapi.py +0 -0
  67. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/services/service.py +0 -0
  68. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/services/transactional_service.py +0 -0
  69. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/utils/app_exception.py +0 -0
  70. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/utils/logger.py +0 -0
  71. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/utils/model_factory.py +0 -0
  72. {api_foundry-0.1.8 → api_foundry-0.1.9}/examples/chinook-postgres-pulumi/temp/chinook_postgres-archive-builder-lambda/staging/api_foundry/utils/spec_handler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: api-foundry
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: The `api_foundry` project is a powerful tool designed to automate the deployment of REST APIs on AWS using Lambda services to access and interact with relational databases (RDBMS). This project leverages the OpenAPI specification to define and manage the APIs
5
5
  Project-URL: Documentation, https://github.com/DanRepik/api-foundry
6
6
  Project-URL: Source, https://github.com/DanRepik/api-foundry
@@ -2,6 +2,7 @@ import pkgutil
2
2
  import importlib.resources as pkg_resources
3
3
  from pathlib import Path
4
4
  from pulumi import ComponentResource, Output, ResourceOptions, export
5
+ import pulumi_aws as aws
5
6
  from typing import Any, Awaitable, Mapping
6
7
 
7
8
  from api_foundry.iac.gateway_spec import GatewaySpec
@@ -12,6 +13,7 @@ from api_foundry.utils.model_factory import ModelFactory
12
13
 
13
14
  log = logger(__name__)
14
15
 
16
+
15
17
  class APIFoundry(ComponentResource):
16
18
  def __init__(
17
19
  self,
@@ -27,7 +29,7 @@ class APIFoundry(ComponentResource):
27
29
  assert "secrets" in props, "Missing secrets map"
28
30
 
29
31
  # Dynamically obtain the path to the `api_foundry` package
30
- with pkg_resources.path('api_foundry', '__init__.py') as p:
32
+ with pkg_resources.path("api_foundry", "__init__.py") as p:
31
33
  api_foundry_source = str(Path(p).parent)
32
34
 
33
35
  self.archive_builder = PythonArchiveBuilder(
@@ -82,4 +84,15 @@ class APIFoundry(ComponentResource):
82
84
  body=body,
83
85
  )
84
86
 
87
+ deployment = aws.apigateway.Deployment(
88
+ f"{name}-deployment", rest_api=gateway.id
89
+ )
90
+
91
+ aws.apigateway.Stage(
92
+ f"{name}-stage",
93
+ rest_api=gateway.id,
94
+ deployment=deployment.id,
95
+ stage_name=name,
96
+ )
97
+
85
98
  export("gateway-api", gateway.id)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "api-foundry"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  authors = [
9
9
  { name="Daniel Repik", email="danrepik@icloud.com" },
10
10
  ]
File without changes
File without changes