Skip to main content

Tools to support converting a Python project into a standalone native application.

Project description

http://pybee.org/briefcase/static/images/briefcase-72.png

Briefcase

Tools to support converting a Python project into a standalone native application.

Quickstart

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',
            'icon': 'icons/app.icns',
        },
        'osx': {
            'app_requires': [
                'toga[osx]'
            ]
        },
        'ios': {
            'app_requires': [
                'toga[ios]'
            ],
            'icon': {
                '29': 'icons/app-29.png',
                '40': 'icons/app-40.png',
                '58': 'icons/app-58.png',
                '76': 'icons/app-76.png',
                '80': 'icons/app-80.png',
                '87': 'icons/app-87.png',
                '120': 'icons/app-120.png',
                '152': 'icons/app-152.png',
                '167': 'icons/app-167.png',
                '180': 'icons/app-180.png',
            },
            'splash': {
                '1024x768': 'splash/splash-1024x768.png',
                '1536x2048': 'splash/splash-1536x2048.png',
                '2048x1536': 'splash/splash-2048x1536.png',
                '768x1024': 'splash/splash-768x1024.png',
                '640x1136': 'splash/splash-640x1136.png',
                '640x960': 'splash/splash-640x960.png',
            }
        },
        '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.

Community

Briefcase is part of the BeeWare suite. You can talk to the community through:

Contributing

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

briefcase-0.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

briefcase-0.1.1-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file briefcase-0.1.1.tar.gz.

File metadata

  • Download URL: briefcase-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for briefcase-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c2a4b173dc1017f6466ef0c590efdc2eafbe3aadd0a65617014746c534ff10b0
MD5 27c9d62d9ea61e6ea139436125146fc6
BLAKE2b-256 eaffda4b56d7d75c5348d250f96fa97699e9c94ae7780a08e6396e2bbe69bab2

See more details on using hashes here.

File details

Details for the file briefcase-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for briefcase-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8179357ca79c3d783dafca4a171cb8d809c744c4cb0a7c90d494578c77ba0cdc
MD5 6d39d21993843a0dcfdddcc604275d97
BLAKE2b-256 1f2d72b215722c6dba2144c157d2533b1de7052b606f70ddff634acbdcc27b65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page