{"id":"omouta/pylua","name":"pylua","scope":"omouta","platform":"roblox","description":"Embedded Python Interpreter for Luau","version":"0.3.0","latest":"0.3.0","versions":["0.3.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{},"integrity":"793d95ba2d397f684da79861a0cf85281e70f51cfab1c11db54ecb7717d30401","likes":0,"downloads":0,"install":"forest install omouta/pylua","url":"https://forest.dev/p/roblox/omouta/pylua","files":"https://api.forest.dev/ai/package/roblox/omouta/pylua/files","readme":"# PyLua - Embedded Python for Luau\r\n\r\n> For v0.2 docs, see [docs/0.2/README.md](docs/0.2/README.md).\r\n\r\nRun Python inside Luau (e.g., Roblox). PyLua 0.3 is a compact, CPython‑inspired interpreter you can embed in Luau projects.\r\n\r\n## Highlights\r\n\r\n- Python 3.12 (and below) semantics where practical\r\n- Works with [Lute] and Luau runtimes (Roblox Studio, etc.)\r\n- Simple API: execute/eval and share values via `globals()`\r\n- CPython‑style pipeline (lexer → parser → AST → bytecode → VM)\r\n\r\n## Quick start\r\n\r\nRun an example from the repo root (requires Lute in PATH):\r\n\r\n```powershell\r\nlute examples/hello_world.luau\r\n```\r\n\r\nEmbed and run a bit of Python:\r\n\r\n```lua\r\nlocal PyLua = require(\"./src/PyLua\")\r\nlocal py = PyLua.new()\r\n\r\npy:execute([[x = 2 + 3]])\r\nprint(py:getGlobal(\"x\")) -- 5\r\n\r\nlocal result = py:eval(\"sum([1, 2, 3])\")\r\nprint(result) -- 6\r\n```\r\n\r\n## Docs and examples\r\n\r\n- Docs index: `docs/README.md`\r\n- Architecture overview: `docs/ARCHITECTURE.md`\r\n- Examples: `examples/`\r\n\r\n## Status\r\n\r\n- Version: `0.3.0`\r\n- Target: Python 3.12 and below (3.13+ out of scope)\r\n- Roadmap: `internalDocs/ROADMAP.md`\r\n\r\n## Contributing\r\n\r\nIssues and PRs welcome. See `CONTRIBUTING.md` for guidelines.\r\n\r\n## License\r\n\r\nMIT — see [`LICENSE`](./LICENSE).\r\n\r\n[Lute]: https://github.com/luau-lang/lute\r\n","readmeTruncated":false}