aws-lambda-env-modeler 2.1.0__tar.gz → 3.0.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.
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/.gitignore +2 -0
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/LICENSE +1 -1
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/PKG-INFO +7 -8
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/README.md +5 -5
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/pyproject.toml +3 -5
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/__init__.py +0 -0
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler.py +0 -0
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler_impl.py +0 -0
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/py.typed +0 -0
- {aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aws_lambda_env_modeler
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: AWS-Lambda-Env-Modeler is a Python library designed to simplify the process of managing and validating environment variables in your AWS Lambda functions.
|
|
5
5
|
Project-URL: Repository, https://github.com/ran-isenberg/aws-lambda-env-modeler
|
|
6
6
|
Project-URL: Issue tracker, https://github.com/ran-isenberg/aws-lambda-env-modeler/issues
|
|
@@ -13,13 +13,12 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Natural Language :: English
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
-
Requires-Python: <4,>=3.
|
|
21
|
+
Requires-Python: <4,>=3.10.0
|
|
23
22
|
Requires-Dist: pydantic<3,>=2.12.0
|
|
24
23
|
Description-Content-Type: text/markdown
|
|
25
24
|
|
|
@@ -27,7 +26,7 @@ Description-Content-Type: text/markdown
|
|
|
27
26
|
# AWS Lambda Environment Variables Modeler (Python)
|
|
28
27
|
|
|
29
28
|
[](https://github.com/ran-isenberg/aws-lambda-env-modeler/blob/master/LICENSE)
|
|
30
|
-

|
|
31
30
|

|
|
32
31
|

|
|
33
32
|
[](https://pepy.tech/projects/aws-lambda-env-modeler)
|
|
@@ -40,7 +39,7 @@ Description-Content-Type: text/markdown
|
|
|
40
39
|
|
|
41
40
|
AWS-Lambda-Env-Modeler is a Python library designed to simplify the process of managing and validating environment variables in your AWS Lambda functions.
|
|
42
41
|
|
|
43
|
-
It leverages the power of [Pydantic](https://
|
|
42
|
+
It leverages the power of [Pydantic](https://docs.pydantic.dev/latest/) models to define the expected structure and types of the environment variables.
|
|
44
43
|
|
|
45
44
|
This library is especially handy for serverless applications where managing configuration via environment variables is a common practice.
|
|
46
45
|
|
|
@@ -108,7 +107,7 @@ Then, you can fetch the environment variables using the global getter function,
|
|
|
108
107
|
```python
|
|
109
108
|
from aws_lambda_env_modeler import init_environment_variables
|
|
110
109
|
|
|
111
|
-
@init_environment_variables(MyEnvVariables)
|
|
110
|
+
@init_environment_variables(model=MyEnvVariables)
|
|
112
111
|
def my_handler_entry_function(event, context):
|
|
113
112
|
# At this point, environment variables are already validated and initialized
|
|
114
113
|
pass
|
|
@@ -119,7 +118,7 @@ Then, you can fetch and validate the environment variables with your model:
|
|
|
119
118
|
```python
|
|
120
119
|
from aws_lambda_env_modeler import get_environment_variables
|
|
121
120
|
|
|
122
|
-
env_vars = get_environment_variables(MyEnvVariables)
|
|
121
|
+
env_vars = get_environment_variables(model=MyEnvVariables)
|
|
123
122
|
print(env_vars.DB_HOST)
|
|
124
123
|
```
|
|
125
124
|
|
|
@@ -140,7 +139,7 @@ from typing import Any, Dict
|
|
|
140
139
|
from unittest.mock import patch
|
|
141
140
|
|
|
142
141
|
from pydantic import BaseModel
|
|
143
|
-
from
|
|
142
|
+
from typing import Literal
|
|
144
143
|
|
|
145
144
|
from aws_lambda_env_modeler import LAMBDA_ENV_MODELER_DISABLE_CACHE, get_environment_variables, init_environment_variables
|
|
146
145
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# AWS Lambda Environment Variables Modeler (Python)
|
|
3
3
|
|
|
4
4
|
[](https://github.com/ran-isenberg/aws-lambda-env-modeler/blob/master/LICENSE)
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
[](https://pepy.tech/projects/aws-lambda-env-modeler)
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
AWS-Lambda-Env-Modeler is a Python library designed to simplify the process of managing and validating environment variables in your AWS Lambda functions.
|
|
17
17
|
|
|
18
|
-
It leverages the power of [Pydantic](https://
|
|
18
|
+
It leverages the power of [Pydantic](https://docs.pydantic.dev/latest/) models to define the expected structure and types of the environment variables.
|
|
19
19
|
|
|
20
20
|
This library is especially handy for serverless applications where managing configuration via environment variables is a common practice.
|
|
21
21
|
|
|
@@ -83,7 +83,7 @@ Then, you can fetch the environment variables using the global getter function,
|
|
|
83
83
|
```python
|
|
84
84
|
from aws_lambda_env_modeler import init_environment_variables
|
|
85
85
|
|
|
86
|
-
@init_environment_variables(MyEnvVariables)
|
|
86
|
+
@init_environment_variables(model=MyEnvVariables)
|
|
87
87
|
def my_handler_entry_function(event, context):
|
|
88
88
|
# At this point, environment variables are already validated and initialized
|
|
89
89
|
pass
|
|
@@ -94,7 +94,7 @@ Then, you can fetch and validate the environment variables with your model:
|
|
|
94
94
|
```python
|
|
95
95
|
from aws_lambda_env_modeler import get_environment_variables
|
|
96
96
|
|
|
97
|
-
env_vars = get_environment_variables(MyEnvVariables)
|
|
97
|
+
env_vars = get_environment_variables(model=MyEnvVariables)
|
|
98
98
|
print(env_vars.DB_HOST)
|
|
99
99
|
```
|
|
100
100
|
|
|
@@ -115,7 +115,7 @@ from typing import Any, Dict
|
|
|
115
115
|
from unittest.mock import patch
|
|
116
116
|
|
|
117
117
|
from pydantic import BaseModel
|
|
118
|
-
from
|
|
118
|
+
from typing import Literal
|
|
119
119
|
|
|
120
120
|
from aws_lambda_env_modeler import LAMBDA_ENV_MODELER_DISABLE_CACHE, get_environment_variables, init_environment_variables
|
|
121
121
|
|
|
@@ -4,10 +4,10 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aws_lambda_env_modeler"
|
|
7
|
-
version = "
|
|
7
|
+
version = "3.0.0"
|
|
8
8
|
description = "AWS-Lambda-Env-Modeler is a Python library designed to simplify the process of managing and validating environment variables in your AWS Lambda functions."
|
|
9
9
|
authors = [{ name = "Ran Isenberg" }]
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.10.0,<4"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
license = "MIT-0"
|
|
13
13
|
keywords = [
|
|
@@ -22,7 +22,6 @@ classifiers = [
|
|
|
22
22
|
"Intended Audience :: Developers",
|
|
23
23
|
"License :: OSI Approved :: MIT License",
|
|
24
24
|
"Natural Language :: English",
|
|
25
|
-
"Programming Language :: Python :: 3.9",
|
|
26
25
|
"Programming Language :: Python :: 3.10",
|
|
27
26
|
"Programming Language :: Python :: 3.11",
|
|
28
27
|
"Programming Language :: Python :: 3.12",
|
|
@@ -50,8 +49,7 @@ dev = [
|
|
|
50
49
|
"xenon",
|
|
51
50
|
"pre-commit",
|
|
52
51
|
"ruff",
|
|
53
|
-
"
|
|
54
|
-
"mkdocs-git-revision-date-plugin",
|
|
52
|
+
"zensical",
|
|
55
53
|
"types-cachetools",
|
|
56
54
|
"mypy",
|
|
57
55
|
"types-requests",
|
{aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/__init__.py
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler.py
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler_impl.py
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/py.typed
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.1.0 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/types.py
RENAMED
|
File without changes
|