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

Download files

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

Source Distribution

openpylot-0.2.0.tar.gz (459.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

openpylot-0.2.0-cp39-abi3-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.9+Windows x86-64

openpylot-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

openpylot-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

openpylot-0.2.0-cp39-abi3-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

openpylot-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file openpylot-0.2.0.tar.gz.

File metadata

  • Download URL: openpylot-0.2.0.tar.gz
  • Upload date:
  • Size: 459.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.15.0

File hashes

Hashes for openpylot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb9c78b6371279794e4674c38da77bd99aea04588f1ded21913e44ab9227e1e6
MD5 f901d61aa3f289f139e618d1d57010c2
BLAKE2b-256 03a6339906394694da4e1358d614756b7418242e5f54cbc3b9efe379b7840521

See more details on using hashes here.

File details

Details for the file openpylot-0.2.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: openpylot-0.2.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.15.0

File hashes

Hashes for openpylot-0.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8607a719287d517924e55754ed426a05ab56dce65e1084d404f2d4fb81a62bd1
MD5 fbb416eac8e7e6ac2b0afdd7dbdfbfc1
BLAKE2b-256 f8a4df8847e82f203df2827c69fdaf35cd9e8ef30ffc29b67c35c1ff36e2ab54

See more details on using hashes here.

File details

Details for the file openpylot-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openpylot-0.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d4222884b7c7d682e497146308f980f2db473b1943740f7cbb5be362aedda7e
MD5 e5529182f313730e62aacca7153fdc5a
BLAKE2b-256 f84cc876fec50407daf5ee76b6654b86361674bbe816bbe1e8252dea7d5a097a

See more details on using hashes here.

File details

Details for the file openpylot-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for openpylot-0.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e936fb26130578f3756df054f68405f80adf44720c60ae156d55ddd79be6afb
MD5 edb40c41741471582e6f034b3bf69772
BLAKE2b-256 f2e55f9a504db56d81be7154dea8495e3c3788eb5cc9c30165d0937f4c3f2c1d

See more details on using hashes here.

File details

Details for the file openpylot-0.2.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for openpylot-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5818ae7453801089cd494a46e49783b73aefb8034b9142892f03dafcc5610cf9
MD5 0d6d6fdf14602b8c3c3339f89bb34e92
BLAKE2b-256 4551dc5056019297c3193e2ea21e3e5e85e963efbfbeebbf6018e1394ba63b17

See more details on using hashes here.

File details

Details for the file openpylot-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for openpylot-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 365a27f19a5d3703e5e46fe448543b518f4239235624c51c004f016a9124af20
MD5 45d0890d8f86dd75918101f46d0623b2
BLAKE2b-256 9b43b76174d3a86a52be6afe9f988f681cc4f5b6d89c5e3273bd899d612a225d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

6 files

0.1.0

6 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