Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions python/audio/wendy.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,80 @@
{
"type": "audio"
}
],
"defaultProfile": "local-dev",
"profiles": [
{
"id": "local-dev",
"when": {
"target": "local"
},
"run": {
"type": "host",
"command": "uv run --with-requirements requirements.txt app.py"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
},
{
"id": "device-default",
"when": {
"target": "device"
},
"build": {
"type": "docker",
"platform": "{{target.platform}}",
"buildArgs": {
"TARGET_PLATFORM": "{{target.platform}}",
"TARGET_KIND": "{{target.kind}}"
},
"env": {
"DOCKER_BUILDKIT": "1"
}
},
"run": {
"type": "container"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
}
]
}
97 changes: 86 additions & 11 deletions python/bluetooth-discovery/wendy.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,90 @@
{
"appId": "sh.wendy.examples.bluetooth-discovery",
"version": "1.0.0",
"language": "python",
"entitlements": [
{
"type": "network",
"mode": "host"
"appId": "sh.wendy.examples.bluetooth-discovery",
"version": "1.0.0",
"language": "python",
"entitlements": [
{
"type": "network",
"mode": "host"
},
{
"type": "bluetooth",
"mode": "bluez"
}
],
"defaultProfile": "local-dev",
"profiles": [
{
"id": "local-dev",
"when": {
"target": "local"
},
"run": {
"type": "host",
"command": "uv run --with-requirements requirements.txt app.py"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
},
{
"id": "device-default",
"when": {
"target": "device"
},
"build": {
"type": "docker",
"platform": "{{target.platform}}",
"buildArgs": {
"TARGET_PLATFORM": "{{target.platform}}",
"TARGET_KIND": "{{target.kind}}"
},
{
"type": "bluetooth",
"mode": "bluez"
"env": {
"DOCKER_BUILDKIT": "1"
}
]
},
"run": {
"type": "container"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
}
]
}
95 changes: 85 additions & 10 deletions python/hello-world/wendy.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,91 @@
{
"appId" : "com.example.hello_world",
"entitlements" : [
"appId": "com.example.hello_world",
"entitlements": [
{
"mode" : "host",
"type" : "network"
"mode": "host",
"type": "network"
}
],
"language" : "python",
"python" : {
"container" : {
"sourceRoot" : "\/app"
"language": "python",
"python": {
"container": {
"sourceRoot": "/app"
}
},
"version" : "0.0.1"
}
"version": "0.0.1",
"defaultProfile": "local-dev",
"profiles": [
{
"id": "local-dev",
"when": {
"target": "local"
},
"run": {
"type": "host",
"command": "uv run --with-requirements requirements.txt app.py"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
},
{
"id": "device-default",
"when": {
"target": "device"
},
"build": {
"type": "docker",
"platform": "{{target.platform}}",
"buildArgs": {
"TARGET_PLATFORM": "{{target.platform}}",
"TARGET_KIND": "{{target.kind}}"
},
"env": {
"DOCKER_BUILDKIT": "1"
}
},
"run": {
"type": "container"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
}
]
}
95 changes: 85 additions & 10 deletions python/mlx-qwen3-4b-4bit/wendy.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,89 @@
{
"appId": "sh.wendy.examples.mlx-qwen3-4b-4bit",
"version": "1.0.0",
"language": "python",
"entitlements": [
{
"type": "network",
"mode": "host"
"appId": "sh.wendy.examples.mlx-qwen3-4b-4bit",
"version": "1.0.0",
"language": "python",
"entitlements": [
{
"type": "network",
"mode": "host"
},
{
"type": "gpu"
}
],
"defaultProfile": "local-dev",
"profiles": [
{
"id": "local-dev",
"when": {
"target": "local"
},
"run": {
"type": "host",
"command": "uv run --with-requirements requirements.txt app.py"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
},
{
"id": "device-default",
"when": {
"target": "device"
},
"build": {
"type": "docker",
"platform": "{{target.platform}}",
"buildArgs": {
"TARGET_PLATFORM": "{{target.platform}}",
"TARGET_KIND": "{{target.kind}}"
},
{
"type": "gpu"
"env": {
"DOCKER_BUILDKIT": "1"
}
]
},
"run": {
"type": "container"
},
"hooks": {
"preBuild": [
{
"name": "Show build context",
"command": "echo Building {{profile.id}} for {{target.platform}}"
}
],
"preRun": [
{
"name": "Show run context",
"command": "echo Running {{profile.id}} on {{target.kind}} {{device.host}}"
}
],
"preStop": [
{
"name": "Best-effort cleanup",
"command": "echo Stopping {{profile.id}}",
"continueOnError": true
}
]
}
}
]
}
Loading