Rename project to pssecret
Update of pre-commit configuration
This commit is contained in:
parent
83e790be74
commit
d5fe39f2cc
14 changed files with 30 additions and 33 deletions
|
@ -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()
|
||||
|
|
@ -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)
|
|
@ -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)
|
||||
|
|
@ -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:
|
Loading…
Add table
Add a link
Reference in a new issue