Work in progress - Work in progress - Work in progress - Work in progress - Work in progress
View attachment 61077
Work in progress - Work in progress - Work in progress - Work in progress - Work in progress
The
Ninja Python B4A library brings you the ability of utilizing the Python language inside your B4A games and apps.
This can range from a few lines of code to entire scripts or object oriented modules, the choice is yours.
Spoiler: The Zen of Python
Quickstart:
- Switch 'Compilation Mode' to Release
- Download the library files and place them in your B4A external libraries folder.
- Option A: Download the resource files and place them in your project's Files folder.
- Option B: Download the test project below.
- See the 'usage' example below.
Practice:
Features:
- x86 and ARM compatible
- Ongoing development
Wishlist:
- Dedicated function calls
- Passing and returning B4A objects such as lists and maps
- Support for 3rd party libraries
Price (pay what you want):
Test project:
-
KanBan board:
Library files (1.03):
-
Resource files:
-
Usage:
Dim Py As NinjaPython[/COLOR][/INDENT]
[COLOR=#000000][INDENT]Py.Initialize[/INDENT]
[INDENT]Py.Exec($"[/INDENT]
[INDENT]def SayHello(subject):[/INDENT]
[INDENT] print 'Hello, ' + subject + '!'[/INDENT]
[INDENT]"$)[/INDENT]
[INDENT][/INDENT]
[INDENT]...[/INDENT]
[INDENT]...[/INDENT]
[INDENT]...[/INDENT]
[INDENT]...[/INDENT]
[INDENT][/INDENT]
[INDENT]Py.Exec("SayHello('world')") 'Outputs and returns 'Hello, world!'[/INDENT]
[INDENT]Py.Finalize[/INDENT]
[INDENT]
Learn:
Spoiler: Learn Python In One Video
/SPOILER]
Enjoy!