# Open Source Python interpreter in 1 file for game scripting

**URL:** <https://forum.devtalk.com/t/open-source-python-interpreter-in-1-file-for-game-scripting/110901>\
**Category:** Game Dev Libraries/Projects\
**Tags:** cpp, python\
**Created:** [30 May 2023 09:26 UTC](https://forum.devtalk.com/t/open-source-python-interpreter-in-1-file-for-game-scripting/110901 "2023-05-30T09:26:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueloveTH](https://forum.devtalk.com/user_avatar/forum.devtalk.com/blueloveth/32/5105_2.png) [@blueloveTH](https://forum.devtalk.com/u/blueloveTH)\
**Post date:** [30 May 2023 09:26 UTC](https://forum.devtalk.com/t/open-source-python-interpreter-in-1-file-for-game-scripting/110901/1 "2023-05-30T09:26:20Z")

</div>

[pocketpy](https://github.com/blueloveTH/pocketpy) is a lightweight(~10000 LOC) Python interpreter for game scripting, built on C++17 with STL.

It aims to be an alternative to lua for game scripting, with elegant syntax, powerful features and competitive performance. pocketpy is extremely easy to embed via a single header file `pocketpy.h`, without external dependencies.

See [https://pocketpy.dev](https://pocketpy.dev) for details or [try Live Demo](https://pocketpy.dev/static/web/).
