Skip to main content

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 boilerplate
  • banana install to install packages from the requirements.txt
  • banana 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

  1. Install the CLI with pip
pip3 install banana-cli==0.0.7
  1. Create a new project directory with
banana init my-app
cd my-app
  1. 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:

  1. Try changing the handler, see what happens!
  2. Try changing the init, see what happens!

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

banana_cli-0.0.7.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

banana_cli-0.0.7-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

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