MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / __call__

Method __call__

excel-ingester/loader/__init__.py:69–81  ·  view source on GitHub ↗
(self, **_ignored)

Source from the content-addressed store, hash-verified

67 self._instance = None
68
69 def __call__(self, **_ignored):
70 if not self._instance:
71 # Load settings from .env
72 load_dotenv(find_dotenv())
73 self._instance = PgSqlDb(
74 os.getenv("POSTGRES_HOST"),
75 os.getenv("POSTGRES_PORT"),
76 os.getenv("POSTGRES_DB"),
77 os.getenv("POSTGRES_USER"),
78 os.getenv("POSTGRES_PASSWORD"),
79 )
80
81 return self._instance
82
83
84@auto_str

Callers

nothing calls this directly

Calls 1

PgSqlDbClass · 0.85

Tested by

no test coverage detected