What Is "BlackBerry Python"?
It's a collection of open source tools and code to let you build Python-based apps for BlackBerry devices that include the Python 3.2 runtime (currently, the PlayBook and BlackBerry 10).
This is a community-run project not officially associated with BlackBerry.
We produce two main packages: Tart and a QNX port of PySide.
"BlackBerry Tart" is a framework and collection of tools for building apps using a combination of Python (for the business logic) and BlackBerry's Cascades UI framework (for the user interface). Tart works only on BlackBerry 10 and is now the primary focus of the project. As of summer 2013 numerous apps have been written with the Tart framework so it's considered to be out of the experimental stage, but still under active development.
The other package is a BlackBerry port of PySide, which wraps Qt and QtQuick with Python classes and lets you write the entire app using just Python (and a bunch of libraries you bundle with the app). If you are developing for the PlayBook or have another reason to stick with PySide, head over to our PySide introduction.
- Install the BlackBerry Native SDK. This has the required packaging, signing and deploying tools. Newcomers may need to read our NDK Tutorial, once it's written...
- Install Tart. This is distributed as a zip file which you can extract into your project working folder and immediately use.
- Write an app! Start by building HelloWorld, or you could clone one of the other sample apps.
- Follow through the longer version in the Tart Quick Start.
Optionally, you may want to start with step #0: "Learn Python". If so, some of these links may be helpful to you. Note that Python is one of the easiest modern programming languages to learn, so don't let a lack of experience with it stop you.
- Building Skills in Python including the excellent section on Why Python is So Cool
- MIT's Introduction to Computer Science and Programming
- Google's Python Class
- The Python Tutorial at python.org
- Beginner's Guide to Python (also at python.org, with many links to other material)
You're reading it! We have no API docs yet, but as of summer 2013, the project documentation is undergoing a major update. Check in again. We'll provide a log of major changes as we go.
You can read an overview of all available documentation in this wiki.
To compile Tart and build a custom binary distribution, read about Building Tart.
If you'll be contributing please note that the project is distributed under an MIT license and your contributions must be compatible with that. Additionally we'll be requiring that you accept a Contributor Agreement so keep that in mind. It's not in place yet but, once it is, we'll need contributors to accept it or will have to back out their changes.