Home¶
Hython is a Python interpreter written in Haxe. It allows you to run Python code directly from the command line or within your Haxe projects.
Features¶
- Lightweight: Small memory footprint and fast execution speed (~4x faster than CPython in cpp target)
- Easy Integration: Easily integrates with Haxe/Haxeflixel projects
- Own Runtime System: Custom runtime for efficiency
Installation¶
Dev Build:
Quick Start¶
import paopao.hython.Parser;
import paopao.hython.Interp;
var parser = new Parser();
var expr = parser.parseString("print('Hello, World!')");
var interp = new Interp();
interp.execute(expr);
Documentation¶
- Usage Guide - Detailed usage examples
- API Reference - API documentation
- Features - Supported Python features