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.2.tar.gz (14.3 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.2-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for briefcase-0.1.2.tar.gz
Algorithm Hash digest
SHA256 92061d8af90858eb7a5ad46cdfc59900fde0887656dd0d9b100371e353193559
MD5 9d5625795e2ec43059c80eca18aa4fba
BLAKE2b-256 e3f73641bfb4863a419a663304f118538995d4b7572af03c60b00143ed570f0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for briefcase-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1cfabb4b173867b999b9356bb82be75458399b9e2a7ebbfc8166369dde9f765f
MD5 d741fef9d542081e1d64070b54e39d4b
BLAKE2b-256 26620087032338079b02260b854a13fbda9e67009eb98c648d209a8f75ed1b2e

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