Rename project to pssecret

Update of pre-commit configuration
This commit is contained in:
Ivan Golikov 2024-12-25 12:40:57 +01:00
parent 83e790be74
commit d5fe39f2cc
14 changed files with 30 additions and 33 deletions

View file

@ -1,9 +1,9 @@
from fastapi import FastAPI
from fastapi.exceptions import HTTPException
from rectes.models import Secret, SecretSaveResult
from rectes.redis_db import redis
from rectes.utils import get_new_key
from pssecret.models import Secret, SecretSaveResult
from pssecret.redis_db import redis
from pssecret.utils import get_new_key
app = FastAPI()

View file

@ -1,6 +1,6 @@
# noinspection PyUnresolvedReferences,PyProtectedMember
from redis import asyncio as aioredis
from rectes.settings import settings
from pssecret.settings import settings
redis = aioredis.from_url(settings.redis.url)

View file

@ -1,5 +1,4 @@
import os
import tomllib
@ -9,7 +8,7 @@ class Settings:
self._data = data
else:
with open(
os.getenv("RECTES_CONF_FILE", "/etc/rectes/rectes.toml"), "rb"
os.getenv("PSSECRET_CONF_FILE", "/etc/pssecret/pssecret.toml"), "rb"
) as f:
self._data = tomllib.load(f)

View file

@ -1,6 +1,6 @@
from uuid import uuid4
from rectes.redis_db import redis
from pssecret.redis_db import redis
async def get_new_key() -> str: