Overview
The Valiqor SDK resolves configuration from three sources, in priority order:- Programmatic — Parameters passed to
ValiqorClient(...)orget_config(**overrides) - Environment variables —
VALIQOR_API_KEY,VALIQOR_PROJECT_NAME, etc. - Config file —
.valiqorrc(JSON file, auto-discovered from cwd upward)
api_key="..." to the constructor always wins over the environment variable.
.valiqorrc File
A JSON configuration file placed in your project root (or any parent directory). The SDK walks up from the current directory to find it.
Environment Variables
Configuration Functions
get_config()
Resolve the full configuration from all sources.
Config Keys & Defaults
find_config_file()
Find the nearest .valiqorrc file by walking up from the given path.
load_config_file()
Load and parse a .valiqorrc file.
save_config()
Write configuration to a .valiqorrc file.
Returns:
bool — True if saved successfully.
ensure_output_dirs()
Create the trace and scan output directories if they don’t exist.
should_upload()
Check if the current config enables cloud uploads.
Constants
Module-Level configure()
The top-level valiqor.configure() function provides a convenient shortcut:
Example: Production Setup
Related
- ValiqorClient — Main client (accepts config params)
- Exceptions —
ConfigurationErrorfor config issues - CLI Configuration —
valiqor configurecommand