Skip to main content

Python REPL with LLM integration

Project description

pai: A Python REPL with built in LLM support

Describe your task, and pai generates the Python code for you using the REPL history as context

Demo

>>> nums = [1,1,2,3,3,4,5]
>>> ai: calc mean median and mode of nums. assign each to a variable
import statistics

nums = [1,1,2,3,3,4,5]

mean = statistics.mean(nums)
median = statistics.median(nums)
mode = statistics.mode(nums)

mean, median, mode
(2.7142857142857144, 3, 1)
>>> mean
2.7142857142857144
>>> median
3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pai_repl-0.1.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

pai_repl-0.1.0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page