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+ · Apache-2.0

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 Apache-2.0

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.8.0.tar.gz (697.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.8.0-py3-none-any.whl (287.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imperal_sdk-5.8.0.tar.gz
  • Upload date:
  • Size: 697.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.8.0.tar.gz
Algorithm Hash digest
SHA256 1a8520c767756cbaff1e969b22c658a34fd9c1f5008bbf3aa0404873a287e634
MD5 1482d1396f3c55c9324e7c2ac39d4f8f
BLAKE2b-256 98e7df3eb0e7eff76548d2a6d06fec37f7dd9d22cb3d3fbb9e9c587fbaedae36

See more details on using hashes here.

Provenance

The following attestation bundles were made for imperal_sdk-5.8.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.8.0-py3-none-any.whl.

File metadata

  • Download URL: imperal_sdk-5.8.0-py3-none-any.whl
  • Upload date:
  • Size: 287.1 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac2deb00b93376e1080da1dcd279b43ca4e949b067237300d32335945b636f55
MD5 4822b30356d4ab6d2ea6584b9378a98f
BLAKE2b-256 8dd562846f4193db6ff93b0987bcc16084b4a25245ac14373b3419a502ab7431

See more details on using hashes here.

Provenance

The following attestation bundles were made for imperal_sdk-5.8.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