Skip to content

Commit 8b92e9f

Browse files
committed
chore(common): add more examples
1 parent 1821a27 commit 8b92e9f

14 files changed

Lines changed: 912 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

example/my-app-manifest/README.md

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
applications:
3+
- name: my-app-manifest
4+
memory: 256M
5+
disk_quota: 512M
6+
instances: 1
7+
buildpacks:
8+
- https://github.com/NickChecan/uv-python-buildpack
9+
random-route: true
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[project]
2+
name = "my-app-manifest"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"fastapi>=0.135.3",
9+
"uvicorn[standard]>=0.44.0",
10+
]
11+
12+
[project.scripts]
13+
start = "my_app_manifest.main:start"
14+
15+
[build-system]
16+
requires = ["uv_build>=0.11.5,<0.12.0"]
17+
build-backend = "uv_build"

example/my-app-manifest/src/my_app_manifest/__init__.py

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
3+
from fastapi import FastAPI
4+
import uvicorn
5+
6+
app = FastAPI()
7+
8+
9+
@app.get("/")
10+
def hello_world():
11+
return {"message": "Hello, World!"}
12+
13+
def start() -> None:
14+
port = int(os.environ.get("PORT", "8000"))
15+
uvicorn.run("my_app_manifest.main:app", host="0.0.0.0", port=port, reload=False)

example/my-app-manifest/uv.lock

Lines changed: 414 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

example/my-app-script/README.md

Whitespace-only changes.

example/my-app-script/manifest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
applications:
3+
- name: my-app-script
4+
memory: 256M
5+
disk_quota: 512M
6+
instances: 1
7+
buildpacks:
8+
- https://github.com/NickChecan/uv-python-buildpack
9+
random-route: true

0 commit comments

Comments
 (0)