api-foundry 0.1.5__tar.gz → 0.1.7__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.
- {api_foundry-0.1.5 → api_foundry-0.1.7}/PKG-INFO +1 -1
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/iac/pulumi/api_foundry.py +12 -15
- {api_foundry-0.1.5 → api_foundry-0.1.7}/pyproject.toml +1 -1
- {api_foundry-0.1.5 → api_foundry-0.1.7}/.gitignore +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/LICENSE +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/__init__.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/adapters/adapter.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/adapters/case_change_adapter.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/adapters/gateway_adapter.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/cloudprints/archive_builder.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/cloudprints/hash_comparator.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/cloudprints/pulumi/lambda_.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/cloudprints/pulumi/log_group.pv +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/cloudprints/pulumi/rest_api.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/cloudprints/python_archive_builder.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/connectors/connection.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/connectors/connection_factory.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/connectors/oracle_connector.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/connectors/postgres_connection.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/dao.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/operation_dao.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_custom_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_delete_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_insert_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_select_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_subselect_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/dao/sql_update_query_handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/iac/gateway_spec.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/iac/handler.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/operation.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/scripts/postgres_to_openapi.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/services/service.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/services/transactional_service.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/utils/app_exception.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/utils/logger.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/api_foundry/utils/model_factory.py +0 -0
- {api_foundry-0.1.5 → api_foundry-0.1.7}/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.
|
|
3
|
+
Version: 0.1.7
|
|
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
|
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
import pkgutil
|
|
2
|
+
import importlib.resources as pkg_resources
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
from pulumi import ComponentResource, Output, ResourceOptions, export
|
|
2
5
|
from typing import Any, Awaitable, Mapping
|
|
3
6
|
|
|
4
|
-
import pulumi
|
|
5
|
-
import pulumi_aws as aws
|
|
6
|
-
|
|
7
|
-
from api_foundry.utils.logger import logger, DEBUG, write_logging_file
|
|
8
|
-
from api_foundry.utils.model_factory import ModelFactory
|
|
9
7
|
from api_foundry.iac.gateway_spec import GatewaySpec
|
|
10
8
|
from api_foundry.cloudprints.python_archive_builder import PythonArchiveBuilder
|
|
11
9
|
from api_foundry.cloudprints.pulumi.lambda_ import PythonFunctionCloudprint
|
|
10
|
+
from api_foundry.utils.logger import logger, DEBUG, write_logging_file
|
|
11
|
+
from api_foundry.utils.model_factory import ModelFactory
|
|
12
12
|
|
|
13
13
|
log = logger(__name__)
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
class APIFoundry(pulumi.ComponentResource):
|
|
15
|
+
class APIFoundry(ComponentResource):
|
|
17
16
|
def __init__(
|
|
18
17
|
self,
|
|
19
18
|
name: str,
|
|
20
|
-
props: Mapping[str, Any | Awaitable[Any] |
|
|
21
|
-
opts:
|
|
19
|
+
props: Mapping[str, Any | Awaitable[Any] | Output[Any]],
|
|
20
|
+
opts: ResourceOptions | None = None,
|
|
22
21
|
remote: bool = False,
|
|
23
22
|
) -> None:
|
|
24
23
|
super().__init__("api_foundry", name, props, opts, remote)
|
|
25
24
|
|
|
26
25
|
api_spec = str(props.get("api_spec", None))
|
|
27
26
|
assert api_spec, "api_spec is not set, a location must be provided."
|
|
28
|
-
|
|
29
27
|
assert "secrets" in props, "Missing secrets map"
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
# Dynamically obtain the path to the `api_foundry` package
|
|
30
|
+
with pkg_resources.path('api_foundry', '__init__.py') as p:
|
|
31
|
+
api_foundry_source = str(Path(p).parent)
|
|
34
32
|
|
|
35
33
|
self.archive_builder = PythonArchiveBuilder(
|
|
36
34
|
name=f"{name}-archive-builder",
|
|
@@ -42,7 +40,6 @@ class APIFoundry(pulumi.ComponentResource):
|
|
|
42
40
|
requirements=[
|
|
43
41
|
"psycopg2-binary",
|
|
44
42
|
"pyyaml",
|
|
45
|
-
# "-e /Users/clydedanielrepik/workspace/api_foundry",
|
|
46
43
|
],
|
|
47
44
|
working_dir="temp",
|
|
48
45
|
)
|
|
@@ -85,4 +82,4 @@ class APIFoundry(pulumi.ComponentResource):
|
|
|
85
82
|
body=body,
|
|
86
83
|
)
|
|
87
84
|
|
|
88
|
-
|
|
85
|
+
export("gateway-api", gateway.id)
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|