Skip to content

Bashful Python

Owen Easter edited this page Mar 1, 2025 · 3 revisions

Bashful comes with a Python virtual environment which it uses to help extend bash functionality.

You can also access this virtual environment and the many bashful python libraries we provide.

However most of these libraries are actually not supposed to be used directly by the user, and are actually just support modules for higher level commands. Use them at your own discretion.

Core Command

You can directly call the bashful python environment with this command. All extensions of bashful python will use this followed by .lib-name.

bpy

Update the Bashful Python Environment

This is handy if you accidentally delete, corrupt misconfigure or manually alter anything to do with bashful python.

bpy.update

Quick Local HTTP Server

You can run a local web server on your machine using the HTTP protocol; however, this should never be used in a production environment.

It's simply a quality of life addition.

bpy.http
  --port (-p) [optional argument for setting the port]

Quick Local HTTPS Server

Ever encounter an issue with developing for the web in-which a feature you would like to implement will only work on HTTPS and not HTTP?

Yeah me too, so here is a super simple command to run a HTTPS compatible web server on your local development machine.

bpy.https
  --port (-p) [optional argument for setting the port]

Quick Local LLM Inference

Ever want to quickly generate a code snippet directly within an isolated terminal interface? Me too.

It's just a more natural way to utilise AI generated code in my opinion.

Or run a local LLM with a voice interface and voice generated responses.

bpy.llm
  --chat (-c) [optional arugment for directly inferencing the model]
Clone this wiki locally