Skip to main content

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

Metadata

Release files for python-pilot 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-pilot 0.0.11
File Size Uploaded
python_pilot-0.0.11.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-pilot 0.0.11
File Interpreter ABI Platform
python_pilot-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / python_pilot-0.0.11.tar.gz

Download URL python_pilot-0.0.11.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
83f2a066998a41294f66c5f323d569d07ba6a264738dce81011f0acc75b32d44
BLAKE2b-256 checksum
How to use checksums
d8db1f9d8b77fd08084e9054dee95c785f0c2a91672acee0f04146207b5b405d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.9.5 Darwin/23.3.0

Release files / python_pilot-0.0.11-py3-none-any.whl

Download URL python_pilot-0.0.11-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
403d6d390ff97d314d22d8bfa0061597109350015011ad06a0c7b24101724963
BLAKE2b-256 checksum
How to use checksums
feb5fe39af8ee6c3b7d99d05a6ce3715b7f2321d415cbddaaba71d4173cf5b7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.9.5 Darwin/23.3.0

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page