Skip to content

Commit

Permalink
Replace jose with pyjwt and update angular to 18.X
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Ott <[email protected]>
  • Loading branch information
DerOetzi committed May 25, 2024
1 parent 6873617 commit c0176b3
Show file tree
Hide file tree
Showing 7 changed files with 2,045 additions and 1,376 deletions.
12 changes: 12 additions & 0 deletions core/brains/change_sensor_json_format.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import json

with open("./sensors.json", "r+", encoding="utf-8") as file:
sensors_old = json.load(file)
sensors_new = []

for name, typed in sensors_old.items():
sensors_new.append({"name": name, "typed": typed})

file.seek(0)
json.dump(sensors_new, file, indent=4)
file.truncate()
4 changes: 2 additions & 2 deletions core/learninghouse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional

from fastapi import __version__ as fastapi_version
from jose import __version__ as jose_version
from jwt import __version__ as jwt_version
from loguru import __version__ as loguru_version
from numpy.version import version as np_version
from pandas import __version__ as pd_version
Expand All @@ -25,7 +25,7 @@
sklearn=skl_version,
numpy=np_version,
pandas=pd_version,
jose=jose_version,
jwt=jwt_version,
passlib=passlib_version,
loguru=loguru_version,
)
4 changes: 2 additions & 2 deletions core/learninghouse/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LearningHouseVersions(LHBaseModel):
sklearn: str = Field(None, example="1.0.0")
numpy: str = Field(None, example="1.0.0")
pandas: str = Field(None, example="1.0.0")
jose: str = Field(None, example="1.0.0")
jwt: str = Field(None, example="1.0.0")
passlib: str = Field(None, example="1.0.0")
loguru: str = Field(None, example="1.0.0")

Expand All @@ -24,7 +24,7 @@ def libraries_versions(self) -> str:
return (
f"Libraries FastAPI: {self.fastapi}, uvicorn: {self.uvicorn}, "
+ f"pydantic: {self.pydantic}, scikit-learn: {self.sklearn}, "
+ f"numpy: {self.numpy}, pandas: {self.pandas}, python-jose: {self.jose}, "
+ f"numpy: {self.numpy}, pandas: {self.pandas}, pyjwt: {self.jwt}, "
+ f"passlib: {self.passlib}, loguru: {self.loguru}"
)

Expand Down
Loading

0 comments on commit c0176b3

Please sign in to comment.