Lupa 0.9 software downloads, free Lupa 0.9 software downloads

Home >> Linux >> Programming >> Libraries >>Lupa 0.9

Categories

Popular Search

Lupa 0.9

  • Publisher:Stefan Behnel
  • License:BSD License
  • File Size:-
  • Version:0.9
  • Operation System:-

Lupa 0.9's Description

Simple wrapper around LuaJIT
Lupa is a Python module that integrates the LuaJIT2 runtime into CPython. It is a partial rewrite of LunaticPython in Cython. Note that it is currently lacking many features and a lot of testing compared to LunaticPython, so if you need a production-ready Lua integration, use that instead.The advantages over LunaticPython are: * separate Lua runtime states through a LuaRuntime class * supports Python 2.x and 3.x, potentially starting with Python 2.3 (currently untested) * written for LuaJIT2, as opposed to the Lua interpreter (tested with LuaJIT 2.0.0-beta4) * much easier to extend as it is written in Cython, not CExample usage:>>> from lupa import LuaRuntime>>> lua = LuaRuntime()>>> lua.eval('1+1')2>>> def add1(n): return n+1>>> func = lua.eval('function(f, n) return f(n) end')>>> func(add1, 2)3Installing lupa 1. Download and unpack lupa http://pypi.python.org/pypi/lupa 2. Download LuaJIT2 http://luajit.org/download.html 3. Unpack the archive into the lupa base directory, e.g.: .../lupa-0.1/LuaJIT-2.0.0-beta4 4. Build LuaJIT: cd LuaJIT-2.0.0-beta4 make cd .. If you need specific C compiler flags, pass them to make as follows: make CFLAGS="..." 5. Build lupa: python setup.py build Requirements:
· Python
What's New in This Release: [ read full changelog ]
· fixed Python special double-underscore method access on LuaObject instances
· Lua coroutine support through dedicated wrapper classes, including Python iteration support. In Python space, Lua coroutines behave exactly like Python generators.

Lupa 0.9's Tags

Lupa 0.9 Related Softwares

Top Freeware

Top Shareware

Top Software

New Software

Copyright 2004-2015 www.bleusoftware.com All rights reserved