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).
- 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.
$ pip install python-pilot
$ pypilot --api-key sk-....
or
$ export OPENAI_API_KEY=sk-...
$ pypilot
- 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