Monte Carlo Benchmarking Engine
High-performance SIMD Monte Carlo engine (AVX2/NEON) with custom memory allocators and perf logging.
 
Loading...
Searching...
No Matches
scripts.config Namespace Reference

Functions

 env (key, default=None)
 Retrieve an environment variable with an optional default.
 

Variables

 CLICKHOUSE_HOST = env("CLICKHOUSE_HOST", "localhost")
 
 CLICKHOUSE_TCP_PORT = int(env("CLICKHOUSE_TCP_PORT", 9000))
 
 CLICKHOUSE_HTTP_PORT = int(env("CLICKHOUSE_HTTP_PORT", 8123))
 
 CLICKHOUSE_USER = env("CLICKHOUSE_USER", "default")
 
 CLICKHOUSE_PASSWORD = env("CLICKHOUSE_PASSWORD", "")
 
 CLICKHOUSE_HOST_DOCKER = env("CLICKHOUSE_HOST_DOCKER", "clickhouse")
 
 CLICKHOUSE_TCP_PORT_DOCKER = int(env("CLICKHOUSE_TCP_PORT_DOCKER", 9000))
 
 CLICKHOUSE_HTTP_PORT_DOCKER = int(env("CLICKHOUSE_HTTP_PORT_DOCKER", 8123))
 
 DB_PATH = Path(env("DB_PATH", "db/db.parquet"))
 
 SAMPLE_PATH = Path(env("SAMPLE_PATH", "samples/db_sample.parquet"))
 

Function Documentation

◆ env()

scripts.config.env ( key,
default = None )

Retrieve an environment variable with an optional default.

Parameters
keyThe environment variable key to read.
defaultThe fallback value to use if the variable is not set.
Returns
The environment value as a string, or the default if not found.

Definition at line 36 of file config.py.

36def env(key, default=None):
37 """!Retrieve an environment variable with an optional default.
38
39 @param key The environment variable key to read.
40 @param default The fallback value to use if the variable is not set.
41
42 @return The environment value as a string, or the default if not found.
43 """
44 return os.getenv(key, default)
45

Variable Documentation

◆ CLICKHOUSE_HOST

scripts.config.CLICKHOUSE_HOST = env("CLICKHOUSE_HOST", "localhost")

Definition at line 46 of file config.py.

◆ CLICKHOUSE_HOST_DOCKER

scripts.config.CLICKHOUSE_HOST_DOCKER = env("CLICKHOUSE_HOST_DOCKER", "clickhouse")

Definition at line 51 of file config.py.

◆ CLICKHOUSE_HTTP_PORT

scripts.config.CLICKHOUSE_HTTP_PORT = int(env("CLICKHOUSE_HTTP_PORT", 8123))

Definition at line 48 of file config.py.

◆ CLICKHOUSE_HTTP_PORT_DOCKER

scripts.config.CLICKHOUSE_HTTP_PORT_DOCKER = int(env("CLICKHOUSE_HTTP_PORT_DOCKER", 8123))

Definition at line 53 of file config.py.

◆ CLICKHOUSE_PASSWORD

scripts.config.CLICKHOUSE_PASSWORD = env("CLICKHOUSE_PASSWORD", "")

Definition at line 50 of file config.py.

◆ CLICKHOUSE_TCP_PORT

scripts.config.CLICKHOUSE_TCP_PORT = int(env("CLICKHOUSE_TCP_PORT", 9000))

Definition at line 47 of file config.py.

◆ CLICKHOUSE_TCP_PORT_DOCKER

scripts.config.CLICKHOUSE_TCP_PORT_DOCKER = int(env("CLICKHOUSE_TCP_PORT_DOCKER", 9000))

Definition at line 52 of file config.py.

◆ CLICKHOUSE_USER

scripts.config.CLICKHOUSE_USER = env("CLICKHOUSE_USER", "default")

Definition at line 49 of file config.py.

◆ DB_PATH

scripts.config.DB_PATH = Path(env("DB_PATH", "db/db.parquet"))

Definition at line 56 of file config.py.

◆ SAMPLE_PATH

scripts.config.SAMPLE_PATH = Path(env("SAMPLE_PATH", "samples/db_sample.parquet"))

Definition at line 57 of file config.py.