Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.45 KB

File metadata and controls

63 lines (42 loc) · 1.45 KB

pythonanywhere-briefcase-plugin

A Briefcase publication channel plugin for deploying static web apps to PythonAnywhere.

Note: This package depends on the publication channels feature in Briefcase, which has not been included in a release yet. Until it is released, install Briefcase from main:

pip install git+https://github.com/beeware/briefcase@main

Prerequisites

  • A PythonAnywhere account
  • An API token (from your Account page)

Installation

$ pip install pythonanywhere-briefcase-plugin

Quick start

Build and package your web app:

$ briefcase create web static
$ briefcase build web static
$ briefcase package web static

Set your PythonAnywhere API token:

$ export API_TOKEN=your-api-token-here

Publish:

$ briefcase publish web static

Your app will be deployed to https://<username>.pythonanywhere.com/.

Documentation

Full documentation is available at https://briefcase.pythonanywhere.com/.

Contributing

Development requires uv.

$ git clone https://github.com/pythonanywhere/pythonanywhere-briefcase-plugin.git
$ cd pythonanywhere-briefcase-plugin
$ uv sync
$ uvx pre-commit install
$ uv run pytest

License

MIT license.