Benign python Download

ga-configreader 0.2.3

“Read configuration values from INI, DB, environment variables, and dictionaries”

Python reads an environment variableIterates over Python environment entries

Evidence

SQLAlchemy ORM lines 8–22
8:4… m pathlib import Path
9from typing import Any
10
11try:
12 from sqlalchemy import create_engine
13 from sqlalchemy import inspect
14 from sqlalchemy import text
15 from sqlalchemy.orm import sessionmaker
16 from sqlalchemy.exc import SQLAlchemyError
17except Exception:
18 create_engine = None
⋯4 lines
Reads file content (Python) lines 116–120
116:8… file_name: str = str(file)
117 if os.path.exists(file_name):
118 self.config.read(file_name)
119 else:
120 raise FileNotFoundError(f"INI file '{file_name}' …
SQL SELECT syntax reference lines 122–127
122:4… self.db_url = db_url
123 self.db_query = db_query or "SELECT value FROM settings WHERE section = :section AND name = :name"
124 self.db_session = None
125
126 self.use_dict = dictionary is not None
127 …
Iterates over Python environment entries lines 204–208
204:12… env_cache = {self._norm_key(key): str(value) for key, value in os.environ.items()}
205
206 self._cache_values = provider_cache
207 self._cache_env_values = env_cache
208 self._cache_ini_items = …
Python reads an environment variable lines 594–598
594:56… e}".upper()
595 if section_name == "":
596 return os.getenv(name.upper(), os.getenv(default_key))
597 if section_name.upper() == "DEFAULT":
598 return os.getenv(default_key) …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.