Module config

Module config 

Source
Expand description

Configuration bridge for Monarch Hyperactor.

This module defines Monarch-specific configuration keys and their Python bindings on top of the core hyperactor::config::global system. It wires those keys into the layered config and exposes Python-facing helpers such as configure(...), get_global_config(), get_runtime_config(), and clear_runtime_config(), which together implement the “Runtime” configuration layer used by the Monarch Python API.

Structs§

PyDuration
Python wrapper for Duration, using humantime format strings.
PyPortRange
Python wrapper for Range, using Python’s slice type.

Enums§

PyEncoding
Python enum for Encoding.

Statics§

ACTOR_QUEUE_DISPATCH
Use queue-based message dispatch for Python actors instead of direct dispatch
SHARED_ASYNCIO_RUNTIME
Use a single asyncio runtime for all Python actors, rather than one per actor

Functions§

register_python_bindings
Register Python bindings for the config module
reload_config_from_env
Python API for configuration management
reset_config_to_defaults