A python terminal with an AI assistant
Project description
PyPilot
A python terminal with an AI assistant.
Use it as a regular python terminal and whenever you need the copilot assistance just write it as a comment.
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 assistant.
- The assistant is aware of the terminal history and locals.
- 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.10.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for python_pilot-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 450ef98e19880fc735e43ccf43b078ed3980cd396cc42cf281400de8c330ab17 |
|
MD5 | 19655e2425f55ffa4ba960679bfcd9b4 |
|
BLAKE2b-256 | 52758d8202c00009d676056bacb7eec44973b2d628dac27f95db3f6e31d3a2ec |