nx-python is an ecosystem for developing and running Python homebrew applications on the Nintendo Switch. PyNX serves as the entry point to running Python apps on your Switch. It is a homebrew app that contains a port of the CPython interpreter and allows you to run Python applications from the Homebrew Menu. Just name your application
main.py and place it next to the
PyNX.nro, and it will be executed as soon as you launch PyNX from the Homebrew Menu. Currently, Python 3.5 is supported.
Running PyNX on your Switch
You don't have to compile PyNX, you can just grab a release build and copy the content of the ZIP archive into the
/switch folder on your SD card. PyNX will appear on the Homebrew Menu.
Compile PyNX using
make. This will create a
build directory and build everything in there. Compiling might take a while, grab a coffee or whatever in the meantime if you like. Afterwards, create a distributable version using
make dist. It will appear in the
You will have to install gnu-sed first(
brew install gnu-sed).
Documentation can be found on ReadTheDocs.