Skip to content

roy-pstr/python-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPilot

A python terminal with a coding copilot inside.
This is a regular python terminal, only that your comments are used as requests queries for the copilot.
Don't forget to set the API KEY (supports only OPENAI for now).

Demo

Features

  • Code generation inside the python terminal.
  • Your comments are used to communicate with the copilot.
  • The copilot is aware of the terminal history and locals.
  • Both code and chat responses are supported.
  • Supports system commands from within the terminal (e.g. !pip install <package_name>).
  • Supports all OpenAI models.

Installation

$ pip install python-pilot

Usage

$ pypilot --api-key sk-....

or

$ export OPENAI_API_KEY=sk-... 
$ pypilot

TODO

  • Add a way to use history only with headers of functions...
  • Docker containers
  • Add a selector step that decide what context the next llm prompt should have:
    • history: code executed (w/wo expressions), errors, llm requests
    • locals: vars, functions, modules (full terminal history, locals only) and if the output should be code or chat
  • Add support in llm config file

Releases

No releases published

Packages

No packages published