Primer commit

This commit is contained in:
2025-05-05 02:21:55 +02:00
commit 7b6f525809
62 changed files with 78661 additions and 0 deletions
@@ -0,0 +1,14 @@
class PostgresCredencial:
def __init__(self, titulo: str, host: str, port: int, dbname: str, user: str, password: str):
self.titulo = titulo
self.host = host
self.port = port
self.dbname = dbname
self.user = user
self.password = password
def get_uri(self) -> str:
"""
Retorna una URI de conexión para PostgreSQL.
"""
return f"postgresql://{self.user}:{self.password}@{self.host}:{self.port}/{self.dbname}"