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 extism-py, 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.2.tar.gz (4.3 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.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pointiv_extension_sdk-0.3.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 35e80b27ca24a6d670f45541cd3d0ac8b07145416a3f18bd9e616c4faf11feb7
MD5 7373f7dd7feb95625fe2b9e239ff74da
BLAKE2b-256 064239c30251ea02efc3605ed5de748b1a6f7a7355ac7304c3a6145224b7ad12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointiv_extension_sdk-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe648ec09e06285a4773701207dbb84ffb8e3136493960c9e35461e1c8626cce
MD5 d841564ca83bd60bf5192d7fd300de83
BLAKE2b-256 eecfecbc3f5a92c36d541a5aef81c8e9d631cb9c60f46db01609abf7b7f71c58

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