Pyvorin Docs

Environment Variables

Pyvorin reads configuration from the environment first, then the config file, then safe defaults. No secrets are required in environment variables for normal operation.

Thin Client Variables

All PYVORIN_THIN_* variables override the corresponding config file fields.

VariableTypeDefaultDescription
PYVORIN_THIN_API_BASE_URLstringhttps://api.pyvorin.comBase URL for all API endpoints.
PYVORIN_THIN_COMPILE_API_URLstring(derived)Override the compile endpoint.
PYVORIN_THIN_LICENSE_API_URLstring(derived)Override the licence endpoint.
PYVORIN_THIN_USAGE_API_URLstring(derived)Override the usage endpoint.
PYVORIN_THIN_REQUEST_TIMEOUT_SECONDSfloat10.0HTTP request timeout.
PYVORIN_THIN_REQUEST_RETRY_LIMITint2Number of retries on transient failures.
PYVORIN_THIN_MOCK_MODEboolfalseEnable mock mode for offline development.
PYVORIN_THIN_ALLOW_LOCAL_FALLBACKboolfalseAllow local CPython fallback.
PYVORIN_THIN_CACHE_DIRstring(platform default)Directory for compiled artifact cache.
PYVORIN_THIN_USAGE_OUTPUT_DIRstring(platform default)Directory for local usage event JSON.
PYVORIN_THIN_TELEMETRY_ENABLEDbooltrueEnable or disable telemetry.
PYVORIN_THIN_FAILURE_REPORTS_ENABLEDbooltrueEnable failure report uploads.
PYVORIN_THIN_BENCHMARK_REPORTS_ENABLEDbooltrueEnable benchmark report uploads.
PYVORIN_THIN_SOURCE_UPLOAD_DISABLEDbooltrueDisable raw source upload by default.
PYVORIN_THIN_OFFLINE_QUEUE_ENABLEDbooltrueQueue events locally when offline.
PYVORIN_THIN_MAX_QUEUE_SIZEint1000Maximum number of queued event files.
PYVORIN_THIN_QUEUE_RETENTION_DAYSint30Days to retain queued events.
PYVORIN_THIN_QUEUE_DIRstring(platform default)Directory for the offline queue.
PYVORIN_THIN_CUSTOMER_IDstring(empty)Customer identifier (hashed before transmission).
PYVORIN_THIN_PROJECT_IDstring(empty)Project identifier (hashed before transmission).
PYVORIN_THIN_LICENSE_KEYstring(empty)Override the stored licence key.
PYVORIN_THIN_CONFIG_PATHstring(platform default)Path to the config JSON file.
PYVORIN_THIN_SEND_SOURCEstring(not set)Set to 1 to confirm raw source upload.

Native Compiler Variables

These apply when the full pyvorin package is installed and used directly.

VariableDefaultDescription
PYVORIN_BACKENDautoDefault backend mode: native, legacy, or auto.
PYVORIN_ALLOW_LEGACY(unset)Allow fallback to the legacy backend.
PYVORIN_FORCE_FALLBACK(unset)Force CPython compatibility execution.
PYVORIN_BENCHMARK_MODE(unset)Skip licence checks during benchmark runs.
PYVORIN_SKIP_LICENSE(unset)Skip licence validation (development only).
PYVORIN_DEV_MODE(unset)Enable development mode (relaxes some checks).
PYVORIN_LOCAL_NATIVE(unset)Enable local native compilation in thin client.
PYVORIN_ENV(unset)Set to development to allow HTTP URLs.

Precedence

Environment variables override config file values. Config file values override built-in defaults. Use pyvorin-thin config-show to inspect the resolved settings.