Banana is an SDK to write apps for any screen, inspired by Google’s Flutter for Dart.
Do not confuse Banana with the fruit (which Banana was named after), or other software, such as a library written by Wikimedia users to localise Toolforge tools.
Run the following commands:
git clone https://github.com/TylerMS887/banana --branch "banana/stable"
cd banana
python3 BananaInstaller.py
Consider adding --depth 1
to the git command
if you have a potato network. This may also help
for Tor users, especially using a GitHub onion.
Banana has the pkg
set of tools, which allow you to add and remove
Banana packages. It replaces the old and deprecated bananaimp
function.
For example, to import the Material UI, use
banana.pkg.add("material")
. You can run banana.devhelp("pkg")
in
a Python console with Banana imported for more information.
Banana modules are not imported into __main__
.
They are imported in Banana. To use a module for
Banana, e.g. use banana.foo.bar()
, not
foo.bar()
.
Banana uses a module system separate from that of Python itself. You can create new modules using the main Banana package:
import banana
print("Hello World!")
You must prefix the name of your package with banana_module_
so that
Banana can identify it as a Banana package. There is currently no API to
define packages inside Banana’s class.
- Banana is not a programming language.
- Banana is simply a toolkit for writing cross-platform apps in Python.
- You must capitalize the B in “Banana” if you are referring to the SDK.