Python server action helpers
Project description
python_actions (Python)
Python utilities for server actions backed by Vercel Python functions.
Install
uv add python_actions
Usage
from pydantic import BaseModel
from python_actions import action
class HelloInput(BaseModel):
name: str
class HelloOutput(BaseModel):
greeting: str
@action()
def hello(input: HelloInput) -> HelloOutput:
return HelloOutput(greeting=f"Hello, {input.name}!")
Export actions
python_actions export --root .
Publish
uv build
uv publish
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
python_actions-0.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_actions-0.1.0.tar.gz.
File metadata
- Download URL: python_actions-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db61a63464b754d85c4260198f1c9605d6d53ac94a82a4338f57b705f974646b
|
|
| MD5 |
299e7154dd965bfa0659a113788e4e1a
|
|
| BLAKE2b-256 |
24cb64f25ada76311a19f92659d3662be5a078ff26b66cd4d3ed59ec1b2388c1
|
File details
Details for the file python_actions-0.1.0-py3-none-any.whl.
File metadata
- Download URL: python_actions-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7e5b8f260dc0b403af1a8e366ccb2c3af3a97a2a120078267603f132917f9a4
|
|
| MD5 |
4a67581eb5ed6c757190a2832eae7fe9
|
|
| BLAKE2b-256 |
fffac7ff522eace79ee55488e8e0f4ca283c6c578dcb9eb337028557edbe7988
|