Skip to content

services

NexosAIAPIConfiguration

Configuration class for the NEXOSAI API service. This class holds the necessary configuration values for the NEXOSAI API service.

use classmethod

Context manager to use the configuration.

Source code in src/nexosapi/config/settings/services.py
@classmethod
@contextlib.contextmanager
def use(cls) -> Generator["NexosAIAPIConfiguration"]:
    """Context manager to use the configuration."""
    yield cls.from_environ(environ=os.environ)  # type: ignore