The Banana CLI helps you build Potassium apps
Project description
banana-cli
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 install
to install packages from the requirements.txtbanana dev
to run a dev server with hot-reload
It's currently written in Python, we plan to port to Rust for stable release. Why Rust?
To use it
- Install the CLI with pip
pip3 install banana-cli==0.0.7
- Create a new project directory with
banana init my-app
cd my-app
- Start the dev server
banana dev
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()
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
banana_cli-0.0.7.tar.gz
(8.9 kB
view hashes)
Built Distribution
banana_cli-0.0.7-py3-none-any.whl
(13.7 kB
view hashes)
Close
Hashes for banana_cli-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723b659cced886c2433395f2b792f70f356b99aa99307836f2500856f5c5a30f |
|
MD5 | 6a163f3f78599e34cd623f35cd39ea27 |
|
BLAKE2b-256 | fcfc6f6e7753d12a9eb66aef07ce9b959c8e4215067498fb5f5ac1e4b43623f8 |