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
Metadata
Release files for python_actions 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_actions-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_actions-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / python_actions-0.1.0.tar.gz
| Download URL | python_actions-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db61a63464b754d85c4260198f1c9605d6d53ac94a82a4338f57b705f974646b
|
|
BLAKE2b-256 checksum How to use checksums |
24cb64f25ada76311a19f92659d3662be5a078ff26b66cd4d3ed59ec1b2388c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.0
|
Release files / python_actions-0.1.0-py3-none-any.whl
| Download URL | python_actions-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7e5b8f260dc0b403af1a8e366ccb2c3af3a97a2a120078267603f132917f9a4
|
|
BLAKE2b-256 checksum How to use checksums |
fffac7ff522eace79ee55488e8e0f4ca283c6c578dcb9eb337028557edbe7988
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.0
|