Tools to support development of Python on mobile platforms.
In your virtualenv, install Briefcase:
$ pip install briefcase
Then, add extra options to your setup.py
file to provide the
app-specific properties of your app. Settings that are applicable
to any app can be set under the app
key; platform
specific settings can be specified using a platform key:
setup( ... options={ 'app': { 'formal_name': 'My First App', 'bundle': 'org.example', }, 'osx': { 'app_requires': [ 'toga[osx]' ] }, 'ios': { 'app_requires': [ 'toga[ios]' ] }, 'android': { 'app_requires': [ 'toga[android]' ] }, } )
At a minimum, you must set a formal_name
key (the full, formal name for the
app) and a bundle
key (the bundle identifier for the author organization -
usually a reverse domain name).
Then, you can invoke briefcase
, using:
$ python setup.py osx
to create an OS/X app, or:
$ python setup.py ios
to create an iOS app, or:
$ python setup.py android
to create an Android app.
Briefcase is part of the BeeWare suite. You can talk to the community through:
- @pybeeware on Twitter
- The BeeWare Users Mailing list, for questions about how to use the BeeWare suite.
- The BeeWare Developers Mailing list, for discussing the development of new features in the BeeWare suite, and ideas for new tools for the suite.
If you experience problems with Briefcase, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.