Skip to main content

Pumpkin Plugin API for Python

This package provides everything needed to write a Pumpkin server plugin compiled to WebAssembly using Python.

Quick start

  1. Install pumpkin-api-py:
pip install pumpkin-api-py
  1. Create your plugin (main.py):
from pumpkin_api import Plugin, context, logging, metadata, register_plugin

PluginMetadata = metadata.PluginMetadata

class MyPlugin(Plugin):
    def metadata(self) -> PluginMetadata:
        return PluginMetadata(
            name="my-python-plugin",
            version="0.1.0",
            authors=["you"],
            description="An example python plugin.",
            dependencies=[],
            permissions=[]
        )

    def on_load(self, ctx: context.Context) -> None:
        logging.log(logging.Level.INFO, "Python plugin loaded!")

register_plugin(MyPlugin)
  1. Build your plugin into a WebAssembly component:
pumpkin-plugin-build main -o my_plugin.wasm

Metadata

Release files for pumpkin-api-py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pumpkin-api-py 0.1.0
File Size Uploaded
pumpkin_api_py-0.1.0.tar.gz 91.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pumpkin-api-py 0.1.0
File Interpreter ABI Platform
pumpkin_api_py-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 331.5 kB

Release files / pumpkin_api_py-0.1.0.tar.gz

Download URL pumpkin_api_py-0.1.0.tar.gz
Size 91.9 kB
Tags Source
SHA-256 checksum
How to use checksums
78344192f833413261ae474af35b16cb3e78c54bdeff7f0e83edefb4a8bf3b1e
BLAKE2b-256 checksum
How to use checksums
bc0375c7a6b419e1a7bc97e14c3209b15864ba51cd75e45c100d92ce94129bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pumpkin_api_py-0.1.0-py3-none-any.whl

Download URL pumpkin_api_py-0.1.0-py3-none-any.whl
Size 239.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fe7b8be14fcbc2530a8bd75373b14ebdeaa67517bf389deb0e053321cb9c2d0
BLAKE2b-256 checksum
How to use checksums
d5459b77493f732da7f046f796a42fdd61584bf05aebb0699c4cb61cc2b207b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page