pyfreeflow 0.1.0__tar.gz → 0.1.2__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.
- {pyfreeflow-0.1.0/src/pyfreeflow.egg-info → pyfreeflow-0.1.2}/PKG-INFO +1 -1
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/setup.py +1 -1
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/data_transformer.py +3 -1
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/jwt_operator.py +3 -3
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2/src/pyfreeflow.egg-info}/PKG-INFO +1 -1
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/LICENSE +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/MANIFEST.in +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/README.md +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/requirements.txt +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/scripts/pyfreeflow-cli.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/setup.cfg +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/__init__.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/__init__.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/buffer_operator.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/crypto_operator.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/env_operator.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/file_operator.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/pgsql_executor.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/rest_api_requester.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/sleep_operator.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/ext/types.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/pipeline.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/registry.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow/utils.py +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow.egg-info/SOURCES.txt +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow.egg-info/dependency_links.txt +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow.egg-info/requires.txt +0 -0
- {pyfreeflow-0.1.0 → pyfreeflow-0.1.2}/src/pyfreeflow.egg-info/top_level.txt +0 -0
@@ -158,7 +158,7 @@ class DataTransformerV1_0(FreeFlowExt):
|
|
158
158
|
return lua
|
159
159
|
|
160
160
|
def _dt_now_ts(self):
|
161
|
-
return int(dt.datetime.now(dt.
|
161
|
+
return int(dt.datetime.now(dt.timezone.utc).timestamp())
|
162
162
|
|
163
163
|
def _dt_delta_ts(self, duration):
|
164
164
|
return DurationParser.parse(duration)
|
@@ -185,6 +185,8 @@ class DataTransformerV1_0(FreeFlowExt):
|
|
185
185
|
return self._env.table_from({k: self._py_to_lua(v) for k, v in a.items()})
|
186
186
|
elif isinstance(a, (list, tuple)):
|
187
187
|
return self._env.table_from([self._py_to_lua(v) for v in a])
|
188
|
+
elif a is None:
|
189
|
+
return self._env.globals().safe_env['NIL']
|
188
190
|
else:
|
189
191
|
return a
|
190
192
|
|
@@ -94,13 +94,13 @@ class JwtOperatorV1_0(FreeFlowExt):
|
|
94
94
|
hdr["kid"] = kid
|
95
95
|
|
96
96
|
if self._duration is not None and "exp" not in body:
|
97
|
-
body["exp"] = int(dt.datetime.now(dt.
|
97
|
+
body["exp"] = int(dt.datetime.now(dt.timezone.utc).timestamp() + self._duration)
|
98
98
|
|
99
99
|
if self._not_before is not None and "nbf" not in body:
|
100
|
-
body["nbf"] = int(dt.datetime.now(dt.
|
100
|
+
body["nbf"] = int(dt.datetime.now(dt.timezone.utc).timestamp() + self._not_before)
|
101
101
|
|
102
102
|
if "iat" not in body:
|
103
|
-
body["iat"] = int(dt.datetime.now(dt.
|
103
|
+
body["iat"] = int(dt.datetime.now(dt.timezone.utc).timestamp())
|
104
104
|
|
105
105
|
if self._issuer is not None and "iss" not in body:
|
106
106
|
body["iss"] = self._issuer
|
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
|