Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

harp.config.settings.lazy

class ConstantDefinition[source]

Bases: Definition

ConstantDefinition(path: str = None, name: str = None, value: Any = None, *, args: Optional[Tuple] = None, kwargs: Optional[Mapping] = None)

__init__(path=None, name=None, value=None, *, args=None, kwargs=None)
Parameters:
Return type:

None

build()[source]
property factory
property module
name: str = None
path: str = None
property spec
value: Any = None
class Definition[source]

Bases: Generic[T]

Definition(*, path: str, name: str, args: Optional[Tuple] = None, kwargs: Optional[Mapping] = None)

__init__(*, path, name, args=None, kwargs=None)
Parameters:
Return type:

None

build(*args, **kwargs)[source]
Return type:

T

to_dict(*, secure=True)
validate()[source]
args: Tuple | None = None
property factory
kwargs: Mapping | None = None
property module
name: str
path: str
property spec
Lazy(path_or_factory, *args, _default=None, **kwargs)[source]
Return type:

Definition[type]