Skip to main content

SDK for building Imperal Cloud extensions

Project description

Imperal SDK

Build extensions for Webbee 🐝 — the agent of Imperal Cloud, the world's first AI Cloud OS.

Write a small Python function. Webbee calls it when a user asks for it — in their own words. Ship it to the Marketplace and get paid.

PyPI Python License

Documentation · Quickstart · PyPI · imperal.io


What this is

Imperal Cloud is the world's first AI Cloud OS — a cloud you connect the contexts of your life into (mail, money, projects, servers, notes, anything) and then run entirely in your own native language. Webbee 🐝 is the AI agent that lives inside it and does the work for you, safely.

The Imperal SDK is how you give Webbee a new skill. You write a small, typed Python extension; Webbee picks it up and calls it whenever a user asks for what it does — in plain language. The platform handles the hard parts — authentication, billing, multi-tenancy, audit, recovery, LLM routing — so your code stays small.

pip install imperal-sdk

Python 3.11+ · AGPL-3.0-or-later

Why build here

  • Webbee calls your function directly. Typed, structured calls — no LLM guessing your arguments, no silent write failures.
  • The platform does the plumbing. Auth, per-user isolation, billing, audit, retries and recovery, multi-tenant safety — handled for you.
  • You get paid. Publish to the Imperal Marketplace, price your extension, earn on every use.
  • Bring any LLM. Users connect their own model keys — Anthropic, OpenAI, Google, Ollama, any OpenAI-compatible API.

A 60-second extension

from imperal_sdk import Extension, ChatExtension, ActionResult
from pydantic import BaseModel, Field

ext = Extension(
    "hello-world",
    version="1.0.0",
    display_name="Hello World",
    description="Greets people by name with a friendly message.",
    icon="icon.svg",
    actions_explicit=True,
)

chat = ChatExtension(ext, tool_name="hello_world", description="Friendly greetings.")


class GreetParams(BaseModel):
    name: str = Field(..., description="Person to greet")


@chat.function("greet", description="Greet someone by name.", action_type="read")
async def greet(ctx, params: GreetParams) -> ActionResult:
    return ActionResult.success(
        data={"message": f"Hello, {params.name}! 🐝"},
        summary=f"Greeted {params.name}",
    )

That's a real, working extension. When a user types "say hi to Alex", Webbee calls greet(name="Alex").

→ Full walkthrough, from zero to published: docs.imperal.io

What you can build

  • Chat tools — typed @chat.functions Webbee calls straight from natural language.
  • Panels — UI surfaces rendered inside the Imperal Panel.
  • Skeletons — live data feeds that keep Webbee aware of a user's state.
  • Scheduled jobs & webhooks — act on a timer, or react to outside events.
  • Typed entities (SDL) — return sdl.Entity objects and the platform reads their meaning (id, title, kind, …) directly instead of guessing field names. Live in production.

Every published extension passes the federal contract — the validators that let Webbee call your code safely. The SDK checks it locally before you ship.

Test without a server

from imperal_sdk.testing import MockContext

async def test_greet():
    ctx = MockContext()
    result = await greet(ctx, GreetParams(name="Alex"))
    assert result.status == "success"

Documentation

The full API, the manifest schema, every validator, recipes, and the federal contract live at docs.imperal.io — that's the source of truth; this README is just the doorway.

Documentation docs.imperal.io
Quickstart docs.imperal.io/en/getting-started/quick-start
PyPI pypi.org/project/imperal-sdk
Changelog CHANGELOG.md
License AGPL-3.0-or-later

Built by Imperal, Inc. — Webbee 🐝 is its agent.

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

imperal_sdk-5.4.0.tar.gz (612.9 kB view details)

Uploaded Source

Built Distribution

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

imperal_sdk-5.4.0-py3-none-any.whl (241.5 kB view details)

Uploaded Python 3

File details

Details for the file imperal_sdk-5.4.0.tar.gz.

File metadata

  • Download URL: imperal_sdk-5.4.0.tar.gz
  • Upload date:
  • Size: 612.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imperal_sdk-5.4.0.tar.gz
Algorithm Hash digest
SHA256 0dc4d03f649e06b58af48d6a389de031e3cf4833082e1526bccb8cf4d313e42b
MD5 6c7017807bd7facae693a53a774287a0
BLAKE2b-256 d27439c8686572053863e3efca755f06d72c565ed0a5dc0d2edf763c204d81db

See more details on using hashes here.

Provenance

The following attestation bundles were made for imperal_sdk-5.4.0.tar.gz:

Publisher: publish.yml on imperalcloud/imperal-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file imperal_sdk-5.4.0-py3-none-any.whl.

File metadata

  • Download URL: imperal_sdk-5.4.0-py3-none-any.whl
  • Upload date:
  • Size: 241.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imperal_sdk-5.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d98eeafb49857e80ec9cd4f81cb506316f41393f4cf4222a592e1b4e6af8af07
MD5 dc81e52b25e7011eccf7c575d996f8f0
BLAKE2b-256 286cbd84d6cf8bc4801530610a93b11a110597d001d0fe4e8278bf75164ef265

See more details on using hashes here.

Provenance

The following attestation bundles were made for imperal_sdk-5.4.0-py3-none-any.whl:

Publisher: publish.yml on imperalcloud/imperal-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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