The Banana CLI helps you build Potassium apps
Project description
banana-cli
v0; work in progress; not stable release
The goal of the Banana CLI is to bring an npm-like experience to ML development loops. This version includes:
banana init
to create a project with boilerplatebanana dev
to run a dev server with hot-reload when app.py changes
To use it
- Install the CLI with pip
pip3 install banana-cli==0.0.6
- Create a new project directory with
banana init my-app
cd my-app
- Start the hot reloading dev server
banana dev
The dev server expects you to already have jupyter notebook installed, runnable with jupyter notebook
Hot-Reload Dev Server
The interactive dev server works like a react, next, or nodemon server: it selectively hot reloads components when you save changes to different parts of your app.py
file.
The init() function is ran on startup and for every change to init().
The handler() function is ran on every change to handler(), without needing to wait for a long init()
It does this by pushing code in logical chunks to a jupyter notebook backend, to persist memory between reloads.
Play with it:
- Try changing the handler, see what happens!
- Try changing the init, see what happens!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for banana_cli-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd57108c2d78f0c93f7bed271e3abf871b739d597b3b4867c6d13696ba3f02f |
|
MD5 | 2475a50c9492f44f1e502d0bcf95d0d3 |
|
BLAKE2b-256 | d1a155173340bf400dae2e3d6b6aa316aa177892e10d000fe25407a1c27af3cf |