Python SDK for PR Pilot, a text-to-task automation platform for Github.
Project description
Install | Documentation | Blog | Website
🤖 PR Pilot - Python SDK
PR Pilot is a text-to-task automation platform that enables GitHub developers to trigger AI-driven development tasks in their repositories from anywhere.
This project contains the official Python SDK.
Usage
Install the Python SDK using pip:
pip install pr-pilot
Use the create_task
and get_task
functions to automate your Github project:
import time
from pr_pilot.util import create_task, get_task
task = create_task("PR-Pilot-AI/pr-pilot", "Summarize the README file and create a Github issue with the result.")
while task.status != "completed":
print(f"Waiting for task to complete. Status: {task.status}")
task = get_task(task.id)
time.sleep(5)
print(f"Task completed. Result:\n\n{task.result}")
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
pr_pilot-1.0.0.tar.gz
(32.9 kB
view hashes)
Built Distribution
pr_pilot-1.0.0-py3-none-any.whl
(43.9 kB
view hashes)