aws-lambda-env-modeler 2.0.1__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.0.1 → aws_lambda_env_modeler-3.0.0}/.gitignore +2 -0
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/LICENSE +1 -1
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/PKG-INFO +9 -9
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/README.md +5 -5
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/pyproject.toml +7 -8
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/__init__.py +0 -0
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler.py +0 -0
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler_impl.py +0 -0
- {aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/py.typed +0 -0
- {aws_lambda_env_modeler-2.0.1 → 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,20 +13,20 @@ 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
|
-
|
|
22
|
-
Requires-
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Requires-Python: <4,>=3.10.0
|
|
22
|
+
Requires-Dist: pydantic<3,>=2.12.0
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
# AWS Lambda Environment Variables Modeler (Python)
|
|
27
27
|
|
|
28
28
|
[](https://github.com/ran-isenberg/aws-lambda-env-modeler/blob/master/LICENSE)
|
|
29
|
-

|
|
30
30
|

|
|
31
31
|

|
|
32
32
|
[](https://pepy.tech/projects/aws-lambda-env-modeler)
|
|
@@ -39,7 +39,7 @@ Description-Content-Type: text/markdown
|
|
|
39
39
|
|
|
40
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.
|
|
41
41
|
|
|
42
|
-
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.
|
|
43
43
|
|
|
44
44
|
This library is especially handy for serverless applications where managing configuration via environment variables is a common practice.
|
|
45
45
|
|
|
@@ -107,7 +107,7 @@ Then, you can fetch the environment variables using the global getter function,
|
|
|
107
107
|
```python
|
|
108
108
|
from aws_lambda_env_modeler import init_environment_variables
|
|
109
109
|
|
|
110
|
-
@init_environment_variables(MyEnvVariables)
|
|
110
|
+
@init_environment_variables(model=MyEnvVariables)
|
|
111
111
|
def my_handler_entry_function(event, context):
|
|
112
112
|
# At this point, environment variables are already validated and initialized
|
|
113
113
|
pass
|
|
@@ -118,7 +118,7 @@ Then, you can fetch and validate the environment variables with your model:
|
|
|
118
118
|
```python
|
|
119
119
|
from aws_lambda_env_modeler import get_environment_variables
|
|
120
120
|
|
|
121
|
-
env_vars = get_environment_variables(MyEnvVariables)
|
|
121
|
+
env_vars = get_environment_variables(model=MyEnvVariables)
|
|
122
122
|
print(env_vars.DB_HOST)
|
|
123
123
|
```
|
|
124
124
|
|
|
@@ -139,7 +139,7 @@ from typing import Any, Dict
|
|
|
139
139
|
from unittest.mock import patch
|
|
140
140
|
|
|
141
141
|
from pydantic import BaseModel
|
|
142
|
-
from
|
|
142
|
+
from typing import Literal
|
|
143
143
|
|
|
144
144
|
from aws_lambda_env_modeler import LAMBDA_ENV_MODELER_DISABLE_CACHE, get_environment_variables, init_environment_variables
|
|
145
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,13 +22,13 @@ 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",
|
|
29
28
|
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
30
30
|
]
|
|
31
|
-
dependencies = ["pydantic>=2.
|
|
31
|
+
dependencies = ["pydantic>=2.12.0,<3"]
|
|
32
32
|
|
|
33
33
|
[project.urls]
|
|
34
34
|
Repository = "https://github.com/ran-isenberg/aws-lambda-env-modeler"
|
|
@@ -49,8 +49,7 @@ dev = [
|
|
|
49
49
|
"xenon",
|
|
50
50
|
"pre-commit",
|
|
51
51
|
"ruff",
|
|
52
|
-
"
|
|
53
|
-
"mkdocs-git-revision-date-plugin",
|
|
52
|
+
"zensical",
|
|
54
53
|
"types-cachetools",
|
|
55
54
|
"mypy",
|
|
56
55
|
"types-requests",
|
|
@@ -101,8 +100,8 @@ exclude = [
|
|
|
101
100
|
line-length = 150
|
|
102
101
|
indent-width = 4
|
|
103
102
|
|
|
104
|
-
# Assume Python 3.
|
|
105
|
-
target-version = "
|
|
103
|
+
# Assume Python 3.14
|
|
104
|
+
target-version = "py314"
|
|
106
105
|
|
|
107
106
|
[tool.ruff.lint]
|
|
108
107
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
{aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/__init__.py
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler.py
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/modeler_impl.py
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/py.typed
RENAMED
|
File without changes
|
{aws_lambda_env_modeler-2.0.1 → aws_lambda_env_modeler-3.0.0}/aws_lambda_env_modeler/types.py
RENAMED
|
File without changes
|