export app, fastapi entrypoint

patch bump
This commit is contained in:
onyx-and-iris 2026-04-05 01:41:15 +01:00
parent 6ef9be7a61
commit d20fb52d4b
4 changed files with 11 additions and 14 deletions

View File

@ -14,7 +14,7 @@ pip install vmr-http
## Run ## Run
```console ```console
uvicorn vmr_http.app:app uvicorn vmr_http:app
``` ```
## Use ## Use

View File

@ -1,15 +1,11 @@
[project] [project]
name = "vmr-http" name = "vmr-http"
version = "0.3.0" version = "0.3.1"
description = "HTTP API for controlling Voicemeeter" description = "HTTP API for controlling Voicemeeter"
readme = "README.md" readme = "README.md"
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
requires-python = ">=3.10" requires-python = ">=3.10"
dependencies = [ dependencies = ["fastapi>=0.135.3", "uvicorn>=0.43.0", "voicemeeter-api>=2.7.2"]
"fastapi>=0.135.3",
"uvicorn>=0.43.0",
"voicemeeter-api>=2.7.2",
]
classifiers = [ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Programming Language :: Python", "Programming Language :: Python",
@ -26,14 +22,10 @@ requires = ["uv_build>=0.11.3,<0.12.0"]
build-backend = "uv_build" build-backend = "uv_build"
[dependency-groups] [dependency-groups]
dev = [ dev = ["fastapi[standard]>=0.135.3", "poethepoet>=0.43.0", "ruff>=0.15.9"]
"fastapi[standard]>=0.135.3",
"poethepoet>=0.43.0",
"ruff>=0.15.9",
]
[tool.fastapi] [tool.fastapi]
entrypoint = "vmr_http.app:app" entrypoint = "vmr_http:app"
[tool.uv.sources] [tool.uv.sources]
voicemeeter-api = { path = "../voicemeeter-api-python", editable = true } voicemeeter-api = { path = "../voicemeeter-api-python", editable = true }

View File

@ -0,0 +1,5 @@
"""Voicemeeter HTTP API."""
from .app import app
__all__ = ['app']

2
uv.lock generated
View File

@ -1151,7 +1151,7 @@ wheels = [
[[package]] [[package]]
name = "vmr-http" name = "vmr-http"
version = "0.3.0" version = "0.3.1"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "fastapi" }, { name = "fastapi" },