Skip to main content

Python SDK for building Pointiv WASM extensions

Project description

pointiv-extension-sdk

Python SDK for Pointiv WASM extensions.

Install

pip install pointiv-extension-sdk

Setup

from pointiv_extension_sdk import Input, output, storage


def execute(input: Input) -> dict[str, str]:
    count = int(storage.read("run_count") or "0") + 1
    storage.write("run_count", str(count))
    result = output.text(f"Hello, {input.text or 'World'}! Run #{count}")
    return {"type": result.type, "value": result.value}

Build to WASM with componentize-py or your Pointiv Python toolchain, then set runtime: "wasm" and main: "extension.wasm" in pointiv-extension.json.

APIs

Module Permission What it does
storage storage Per-extension key/value store
clipboard clipboard_read Read clipboard
ai ai LLM completion
http network Outbound HTTP
google_calendar google_calendar Create Calendar events
google_gmail google_gmail Send Gmail
log none Log to ~/.pointiv/trace.jsonl

Calls without permission fail safely.

Manifest

{
  "name": "My Extension",
  "description": "What it does",
  "version": "1.0.0",
  "author": "your-name",
  "keywords": ["tag"],
  "runtime": "wasm",
  "main": "extension.wasm",
  "permissions": ["storage", "network", "google_calendar", "google_gmail"]
}

License

MIT

Project details


Download files

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

Source Distribution

pointiv_extension_sdk-0.3.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

pointiv_extension_sdk-0.3.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pointiv_extension_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: pointiv_extension_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pointiv_extension_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0e646ed20c0509e803c66ca22ebeb4df6939a19ca917437018c55fdb02661efa
MD5 e0aa35419fa25ec3081d843a5bc782d4
BLAKE2b-256 ac4fea72189d0a76128e4516a534fb8722609a45b3ec8980b9a2eb926108dcca

See more details on using hashes here.

File details

Details for the file pointiv_extension_sdk-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pointiv_extension_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4ad8f7509db7a39bc582ee574318da8610eeef7c3eb186b167f7668ca487901
MD5 a0851e00a127670e0cbc544626ab1a12
BLAKE2b-256 bfd4c6f65befbadcb5ed2aa8fdbf0f40a7d856ea0f94f95e374cf2ec0ceb77af

See more details on using hashes here.

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