Skip to main content

OpenPylot — Python Bindings

Python bindings for OpenPylot, a Rust-powered personal AI assistant.

Installation

pip install openpylot

Note: The Rust binary must also be installed. The Python package wraps the native binary via PyO3 and also provides a CLI shim.

Quick Start

Interactive Setup

from pylot import PylotAgent

PylotAgent.init()  # Launches the terminal wizard

Chat

from pylot import PylotAgent

agent = PylotAgent.from_config("~/.pylot/secrets.enc")
response = agent.chat("What meetings do I have today?")
print(response)

Programmatic / CI Setup

from pylot import PylotAgent, Config

config = Config(
    llm_provider="openai",
    llm_model="gpt-4o",
    openai_api_key="sk-...",
    telegram_bot_token="...",
)
agent = PylotAgent(config)
response = agent.chat("Schedule a meeting with John tomorrow at 3pm")

Custom Tools

def search_web(query: str) -> str:
    # your implementation
    return "results..."

agent.register_tool(
    name="search_web",
    schema='{"type":"object","properties":{"query":{"type":"string"}}}',
    callback=search_web,
)

CLI

Once installed, pylot is available on your PATH:

pylot init          # Interactive setup
pylot chat "Hi"     # One-shot chat
pylot serve         # Background daemon
pylot doctor        # Diagnostics

Development

# Install maturin
pip install maturin

# Build and install in development mode
cd python
maturin develop

# Run tests
pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for openpylot 0.2.0

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

Source distribution (sdist)

Source distribution for openpylot 0.2.0
File Size Uploaded
openpylot-0.2.0.tar.gz 459.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for openpylot 0.2.0
File
openpylot-0.2.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
openpylot-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
openpylot-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
openpylot-0.2.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
openpylot-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 21.9 MB

Release files / openpylot-0.2.0.tar.gz

Download URL openpylot-0.2.0.tar.gz
Size 459.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bb9c78b6371279794e4674c38da77bd99aea04588f1ded21913e44ab9227e1e6
BLAKE2b-256 checksum
How to use checksums
03a6339906394694da4e1358d614756b7418242e5f54cbc3b9efe379b7840521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / openpylot-0.2.0-cp39-abi3-win_amd64.whl

Download URL openpylot-0.2.0-cp39-abi3-win_amd64.whl
Size 3.9 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8607a719287d517924e55754ed426a05ab56dce65e1084d404f2d4fb81a62bd1
BLAKE2b-256 checksum
How to use checksums
f8a4df8847e82f203df2827c69fdaf35cd9e8ef30ffc29b67c35c1ff36e2ab54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / openpylot-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openpylot-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.9 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1d4222884b7c7d682e497146308f980f2db473b1943740f7cbb5be362aedda7e
BLAKE2b-256 checksum
How to use checksums
f84cc876fec50407daf5ee76b6654b86361674bbe816bbe1e8252dea7d5a097a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / openpylot-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL openpylot-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.5 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4e936fb26130578f3756df054f68405f80adf44720c60ae156d55ddd79be6afb
BLAKE2b-256 checksum
How to use checksums
f2e55f9a504db56d81be7154dea8495e3c3788eb5cc9c30165d0937f4c3f2c1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / openpylot-0.2.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL openpylot-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 4.0 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5818ae7453801089cd494a46e49783b73aefb8034b9142892f03dafcc5610cf9
BLAKE2b-256 checksum
How to use checksums
4551dc5056019297c3193e2ea21e3e5e85e963efbfbeebbf6018e1394ba63b17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / openpylot-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL openpylot-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 4.2 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
365a27f19a5d3703e5e46fe448543b518f4239235624c51c004f016a9124af20
BLAKE2b-256 checksum
How to use checksums
9b43b76174d3a86a52be6afe9f988f681cc4f5b6d89c5e3273bd899d612a225d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

6 release files

0.1.0

6 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