Preferred bin is pyne (alias pynescript) — a Click group for check, format, lint, compile, run, optimize, and download-builtins. Language server is a separate bin: pyne-lsp. 16 groups · 6 categories.
hoox-pyne • v0.6.4 • bins pyne · pyne-lsp
Installation guideParse-only validation of Pine Script™ sources. CI-friendly exit codes. Walks directories; omit or - → stdin.
Walks directories. Omit PATHS or pass - to read stdin. Prefer .pyne; .pine remains for TradingView® exports.
alias: fmt
Canonicalize Pine Script™ by parse → unparse (structural, not a full style formatter).
alias: dump · ast
Dump the parsed AST for a single Pine Script™ file.
alias: unparse
Round-trip a Pine Script™ file through parse → unparse.
Static diagnostics for one Pine Script™ file or stdin. Not a directory walk.
One file or stdin — not a directory walk. Use pyne check for recursive parse-only.
Source-level v5 ↔ v6 rewriter: //@version, study( → indicator(, bare security( / financial( / … ↔ request.*. Comments and string literals are left unchanged. Not a semantic migrator (bool-as-int, na tightening).
Added in 0.4.3. Rewrites source text only — not a semantic v6 migrator.
Transpile or compile-check via pynescript.compiler.compile_script. --emit prints generated Python without exec/JIT.
[compile] extra required for full Numba; --emit works without JIT.
H2 warm-compile: pay cold JIT before the first interactive run. Optional PATH… compiles scripts into IR caches.
Compile and execute on deterministic synthetic OHLCV (same compile pipeline as Pro API mode=compile).
Synthetic OHLCV compile-only. Does NOT call Runtime.run. No --mode. Prefer package Runtime / Pro API for real bars.
Search input.* values for a strategy() script. Loops interpret Runtime — not /backtest/quick. Requires --space JSON.
strategy() scripts only. Interpret Runtime — not /backtest/quick.
HTTP client for the optional Flask hosted runner (PYNE_RUNNER=1). Deploy a Pine file, tick bar-close jobs, list/show/delete scripts.
Hosted runner is opt-in (PYNE_RUNNER=1). Does not start TRADE_SERVICE.
Fetch market bars for a required SYMBOL. Default provider is mock (offline-safe).
CCXT needs pip install "hoox-pyne[data]". Default provider is mock.
Catalog and download builtin Pine Script™ templates via pine-facade. Operator-initiated; not shipped in the wheel.
Templates are fetched on demand. PYNE does not redistribute proprietary TradingView® platform software.
alias: pynescript-lsp
Language server console script. Not a Click subcommand. Alias pynescript-lsp. Requires [lsp] extra.
Same entry as python -m pynescript.langserver. pip install "hoox-pyne[lsp]".
Bun CLI for @hoox-sh/pynets 0.2.0. Parse, format, dump, and evaluate in TypeScript. Unlike Python pyne run, pynets run calls Runtime.run.
Install with bun add @hoox-sh/pynets. Unlike Python pyne run, pynets run calls Runtime.run.
alias: ls
Print package version, Python, platform, and whether numba / rich extras are available.