hxpy

Haxe/hxcpp @:native bindings for Python.
https://github.com/Vortex2Oblivion/hxpy

To install, run:

haxelib install hxpy 2.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

hxpy

CI

Haxe/hxcpp @:native bindings for the Python C API

This library works on the C++ target only!

Installation

via haxelib

haxelib install hxpy

via git for the latest updates

haxelib git hxpy https://github.com/Vortex2Oblivion/hxpy.git

Usage

See the demos folder for more usage examples

A simple example

package;

import hxpy.PyRun;
import hxpy.Py;

class Main {
	static function main() {
		Py.initialize(); // Initializes the Python interpreter.
		PyRun.simpleString("print(\"Hello World!\")"); // Runs print("Hello World!").
		Py.finalizeEx(); // Closes the Python interpreter.
	}
}

Licensing

hxpy is made available under the MIT License. Check LICENSE for more information.

Python is made available under various licenses. Check The Python Github or python.org for more information.

Haxe is made available under various licenses. Check The Haxe Github for more information.

Contributors
Vortex
Version
2.0.0
Published
2 days ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub