PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge_hpo.transpile Namespace Reference

Classes

class  CodegenIdentity
 
class  TranspileDiagnostic
 
class  TranspileFailure
 
class  TranspileResult
 

Functions

TranspileResult transpile_source (str pine_source, *str filename="<input>")
 
bool codegen_supports_request_inventory ()
 
CodegenIdentity codegen_identity ()
 

Variables

 pineforge_codegen = None
 
 transpile_full = None
 
 CompileError = None
 

Detailed Description

One-pass PineScript transpiler bridge with structured diagnostics.

Function Documentation

◆ codegen_identity()

CodegenIdentity pineforge_hpo.transpile.codegen_identity ( )
Return version plus a hash that detects dirty/editable codegen installs.

Definition at line 371 of file transpile.py.

◆ codegen_supports_request_inventory()

bool pineforge_hpo.transpile.codegen_supports_request_inventory ( )
Feature-detect the loaded producer, including older supported codegens.

Definition at line 359 of file transpile.py.

Referenced by pineforge_hpo.transpile.transpile_source().

◆ transpile_source()

TranspileResult pineforge_hpo.transpile.transpile_source ( str  pine_source,
*str   filename = "<input>" 
)
Transpile source once and normalize all expected diagnostics.

Pine language errors are returned in ``TranspileResult`` rather than being
conflated with native compiler failures. Unexpected bridge failures are also
represented as an ``INTERNAL`` diagnostic so a CLI can emit one stable JSON
envelope. When available, the inventory producer replaces ``transpile_full``
for this source. It stays chart-unbound; requests for the chart's timeframe
therefore remain unknown. The input-kind canary still uses its own source.

Definition at line 219 of file transpile.py.

References pineforge_hpo.transpile.codegen_supports_request_inventory().

Variable Documentation

◆ CompileError

pineforge_hpo.transpile.CompileError = None

Definition at line 23 of file transpile.py.

◆ pineforge_codegen

pineforge_hpo.transpile.pineforge_codegen = None

Definition at line 21 of file transpile.py.

◆ transpile_full

pineforge_hpo.transpile.transpile_full = None

Definition at line 22 of file transpile.py.