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.3.tar.gz (4.4 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.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pointiv_extension_sdk-0.3.3.tar.gz
  • Upload date:
  • Size: 4.4 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.3.tar.gz
Algorithm Hash digest
SHA256 80ed417482cfddbc38e937bec8d5a98f360b1a3f2f4b78fbe9942d357fe4949b
MD5 3182466ceea33d1e3be06d6eb206debb
BLAKE2b-256 7a80bc62b59596f6987baf3c3b4cca77d9404b63ef4ddf8e7882a50c621094f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointiv_extension_sdk-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c06ccfd4d0056f3da57b097efb2499daf57575f71cc43e954b18bdbf796f1ad
MD5 b33a935159dc94e415967af2b8df5c12
BLAKE2b-256 7dc05932bd341c8bc446734f6b2ce4acca4bdefa14471c9c7f4330fa36151697

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