A python terminal with coding copilot inside
Project description
PyPilot
A python terminal with a coding copilot inside.
This is a regular python terminal, only that your comments are used as requests from 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
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
python_pilot-0.0.11.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for python_pilot-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 403d6d390ff97d314d22d8bfa0061597109350015011ad06a0c7b24101724963 |
|
MD5 | d6541e62780b95d423fe2897c442dd53 |
|
BLAKE2b-256 | feb5fe39af8ee6c3b7d99d05a6ce3715b7f2321d415cbddaaba71d4173cf5b7c |