Sen descrición

blueloveTH 5dfd7b5fc9 fix a bug %!s(int64=3) %!d(string=hai) anos
.github 46350b0964 Update pubspec.yaml %!s(int64=3) %!d(string=hai) anos
docs 24b2140959 update readme %!s(int64=3) %!d(string=hai) anos
plugins 5dfd7b5fc9 fix a bug %!s(int64=3) %!d(string=hai) anos
scripts 9a64870f89 up %!s(int64=3) %!d(string=hai) anos
src 5dfd7b5fc9 fix a bug %!s(int64=3) %!d(string=hai) anos
tests 5dfd7b5fc9 fix a bug %!s(int64=3) %!d(string=hai) anos
web 054a2a6873 add RecursionError %!s(int64=3) %!d(string=hai) anos
.gitattributes 0891000a46 init %!s(int64=3) %!d(string=hai) anos
.gitignore b4e95b1bab up %!s(int64=3) %!d(string=hai) anos
.gitmodules b247723b80 up %!s(int64=3) %!d(string=hai) anos
LICENSE 5fe61c2e11 up %!s(int64=3) %!d(string=hai) anos
README.md 609d7e68d8 up %!s(int64=3) %!d(string=hai) anos
amalgamate.py e6bf164008 up %!s(int64=3) %!d(string=hai) anos
build_cpp.sh af776bb4aa disable rtti %!s(int64=3) %!d(string=hai) anos
build_wasm.sh af776bb4aa disable rtti %!s(int64=3) %!d(string=hai) anos
test_cpp.sh b05594ce58 optimize %!s(int64=3) %!d(string=hai) anos

README.md

pocketpy

C++17 header-only Python interpreter for game engines.

Please see https://pocketpy.dev for detailed documentations.

sample_img

Build From Source (Linux)

First clone the repository

git clone https://github.com/blueloveTH/pocketpy
cd pocketpy

Then run

python3 amalgamate.py

It will generate pocketpy.h and main.cpp in amalgamated/ directory. You can use main.cpp to build a REPL console or use pocketpy.h to embed it to your game engine.

Reference