Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
602352ce
Commit
602352ce
authored
Mar 08, 2025
by
Neelay Shah
Committed by
GitHub
Mar 08, 2025
Browse files
chore: rename dynamo (#44)
Co-authored-by:
Biswa Panda
<
biswa.panda@gmail.com
>
parent
ecf53ce2
Changes
431
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
53 additions
and
53 deletions
+53
-53
lib/bindings/python/examples/bls/foo.py
lib/bindings/python/examples/bls/foo.py
+2
-2
lib/bindings/python/examples/error_handling/client.py
lib/bindings/python/examples/error_handling/client.py
+3
-3
lib/bindings/python/examples/error_handling/run.py
lib/bindings/python/examples/error_handling/run.py
+2
-2
lib/bindings/python/examples/error_handling/server.py
lib/bindings/python/examples/error_handling/server.py
+3
-3
lib/bindings/python/examples/hello_world/client.py
lib/bindings/python/examples/hello_world/client.py
+3
-3
lib/bindings/python/examples/hello_world/run.py
lib/bindings/python/examples/hello_world/run.py
+2
-2
lib/bindings/python/examples/hello_world/server.py
lib/bindings/python/examples/hello_world/server.py
+3
-3
lib/bindings/python/examples/pipeline/backend.py
lib/bindings/python/examples/pipeline/backend.py
+2
-2
lib/bindings/python/examples/pipeline/frontend.py
lib/bindings/python/examples/pipeline/frontend.py
+2
-2
lib/bindings/python/examples/pipeline/middle.py
lib/bindings/python/examples/pipeline/middle.py
+2
-2
lib/bindings/python/examples/pipeline/pipeline.py
lib/bindings/python/examples/pipeline/pipeline.py
+2
-2
lib/bindings/python/examples/typed/client.py
lib/bindings/python/examples/typed/client.py
+3
-3
lib/bindings/python/examples/typed/server.py
lib/bindings/python/examples/typed/server.py
+4
-4
lib/bindings/python/rust/engine.rs
lib/bindings/python/rust/engine.rs
+3
-3
lib/bindings/python/rust/lib.rs
lib/bindings/python/rust/lib.rs
+2
-2
lib/bindings/python/rust/llm/backend.rs
lib/bindings/python/rust/llm/backend.rs
+1
-1
lib/bindings/python/rust/llm/preprocessor.rs
lib/bindings/python/rust/llm/preprocessor.rs
+2
-2
lib/bindings/python/src/dynamo/_core.pyi
lib/bindings/python/src/dynamo/_core.pyi
+0
-0
lib/bindings/python/src/dynamo/llm/__init__.py
lib/bindings/python/src/dynamo/llm/__init__.py
+4
-4
lib/bindings/python/src/dynamo/runtime/__init__.py
lib/bindings/python/src/dynamo/runtime/__init__.py
+8
-8
No files found.
lib/bindings/python/examples/bls/foo.py
View file @
602352ce
...
@@ -17,7 +17,7 @@ import asyncio
...
@@ -17,7 +17,7 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
uvloop
.
install
()
uvloop
.
install
()
...
@@ -28,7 +28,7 @@ class RequestHandler:
...
@@ -28,7 +28,7 @@ class RequestHandler:
yield
char
yield
char
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
component
=
runtime
.
namespace
(
"examples/bls"
).
component
(
"foo"
)
component
=
runtime
.
namespace
(
"examples/bls"
).
component
(
"foo"
)
await
component
.
create_service
()
await
component
.
create_service
()
...
...
lib/bindings/python/examples/error_handling/client.py
View file @
602352ce
...
@@ -17,12 +17,12 @@ import asyncio
...
@@ -17,12 +17,12 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
await
init
(
runtime
,
"dyn
e
mo"
)
await
init
(
runtime
,
"dyn
a
mo"
)
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
...
...
lib/bindings/python/examples/error_handling/run.py
View file @
602352ce
...
@@ -21,7 +21,7 @@ import uvloop
...
@@ -21,7 +21,7 @@ import uvloop
from
client
import
init
as
client_init
from
client
import
init
as
client_init
from
server
import
init
as
server_init
from
server
import
init
as
server_init
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
def
random_string
(
length
=
10
):
def
random_string
(
length
=
10
):
...
@@ -29,7 +29,7 @@ def random_string(length=10):
...
@@ -29,7 +29,7 @@ def random_string(length=10):
return
""
.
join
(
random
.
choices
(
chars
,
k
=
length
))
return
""
.
join
(
random
.
choices
(
chars
,
k
=
length
))
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
ns
=
random_string
()
ns
=
random_string
()
task
=
asyncio
.
create_task
(
server_init
(
runtime
,
ns
))
task
=
asyncio
.
create_task
(
server_init
(
runtime
,
ns
))
...
...
lib/bindings/python/examples/error_handling/server.py
View file @
602352ce
...
@@ -17,7 +17,7 @@ import asyncio
...
@@ -17,7 +17,7 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
class
RequestHandler
:
class
RequestHandler
:
...
@@ -33,9 +33,9 @@ class RequestHandler:
...
@@ -33,9 +33,9 @@ class RequestHandler:
yield
char
yield
char
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
await
init
(
runtime
,
"dyn
e
mo"
)
await
init
(
runtime
,
"dyn
a
mo"
)
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
...
...
lib/bindings/python/examples/hello_world/client.py
View file @
602352ce
...
@@ -17,12 +17,12 @@ import asyncio
...
@@ -17,12 +17,12 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
await
init
(
runtime
,
"dyn
e
mo"
)
await
init
(
runtime
,
"dyn
a
mo"
)
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
...
...
lib/bindings/python/examples/hello_world/run.py
View file @
602352ce
...
@@ -21,7 +21,7 @@ import uvloop
...
@@ -21,7 +21,7 @@ import uvloop
from
client
import
init
as
client_init
from
client
import
init
as
client_init
from
server
import
init
as
server_init
from
server
import
init
as
server_init
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
def
random_string
(
length
=
10
):
def
random_string
(
length
=
10
):
...
@@ -29,7 +29,7 @@ def random_string(length=10):
...
@@ -29,7 +29,7 @@ def random_string(length=10):
return
""
.
join
(
random
.
choices
(
chars
,
k
=
length
))
return
""
.
join
(
random
.
choices
(
chars
,
k
=
length
))
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
ns
=
random_string
()
ns
=
random_string
()
task
=
asyncio
.
create_task
(
server_init
(
runtime
,
ns
))
task
=
asyncio
.
create_task
(
server_init
(
runtime
,
ns
))
...
...
lib/bindings/python/examples/hello_world/server.py
View file @
602352ce
...
@@ -17,7 +17,7 @@ import asyncio
...
@@ -17,7 +17,7 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
class
RequestHandler
:
class
RequestHandler
:
...
@@ -31,9 +31,9 @@ class RequestHandler:
...
@@ -31,9 +31,9 @@ class RequestHandler:
yield
char
yield
char
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
await
init
(
runtime
,
"dyn
e
mo"
)
await
init
(
runtime
,
"dyn
a
mo"
)
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
async
def
init
(
runtime
:
DistributedRuntime
,
ns
:
str
):
...
...
lib/bindings/python/examples/pipeline/backend.py
View file @
602352ce
...
@@ -17,7 +17,7 @@ import asyncio
...
@@ -17,7 +17,7 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
uvloop
.
install
()
uvloop
.
install
()
...
@@ -29,7 +29,7 @@ class RequestHandler:
...
@@ -29,7 +29,7 @@ class RequestHandler:
yield
char
yield
char
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
component
=
runtime
.
namespace
(
"examples/pipeline"
).
component
(
"backend"
)
component
=
runtime
.
namespace
(
"examples/pipeline"
).
component
(
"backend"
)
await
component
.
create_service
()
await
component
.
create_service
()
...
...
lib/bindings/python/examples/pipeline/frontend.py
View file @
602352ce
...
@@ -17,7 +17,7 @@ import asyncio
...
@@ -17,7 +17,7 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
uvloop
.
install
()
uvloop
.
install
()
...
@@ -32,7 +32,7 @@ class RequestHandler:
...
@@ -32,7 +32,7 @@ class RequestHandler:
yield
output
.
get
(
"data"
)
yield
output
.
get
(
"data"
)
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
# client to the next component - in this case the middle component
# client to the next component - in this case the middle component
next
=
(
next
=
(
...
...
lib/bindings/python/examples/pipeline/middle.py
View file @
602352ce
...
@@ -17,7 +17,7 @@ import asyncio
...
@@ -17,7 +17,7 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
uvloop
.
install
()
uvloop
.
install
()
...
@@ -32,7 +32,7 @@ class RequestHandler:
...
@@ -32,7 +32,7 @@ class RequestHandler:
yield
output
.
get
(
"data"
)
yield
output
.
get
(
"data"
)
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
# client to backend
# client to backend
backend
=
(
backend
=
(
...
...
lib/bindings/python/examples/pipeline/pipeline.py
View file @
602352ce
...
@@ -17,12 +17,12 @@ import asyncio
...
@@ -17,12 +17,12 @@ import asyncio
import
uvloop
import
uvloop
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
uvloop
.
install
()
uvloop
.
install
()
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
"""
"""
# Pipeline Example
# Pipeline Example
...
...
lib/bindings/python/examples/typed/client.py
View file @
602352ce
...
@@ -17,16 +17,16 @@ import asyncio
...
@@ -17,16 +17,16 @@ import asyncio
from
protocol
import
Request
from
protocol
import
Request
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_worker
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
"""
"""
Instantiate a `backend` client and call the `generate` endpoint
Instantiate a `backend` client and call the `generate` endpoint
"""
"""
# get endpoint
# get endpoint
endpoint
=
runtime
.
namespace
(
"dyn
e
mo"
).
component
(
"backend"
).
endpoint
(
"generate"
)
endpoint
=
runtime
.
namespace
(
"dyn
a
mo"
).
component
(
"backend"
).
endpoint
(
"generate"
)
# create client
# create client
client
=
await
endpoint
.
client
()
client
=
await
endpoint
.
client
()
...
...
lib/bindings/python/examples/typed/server.py
View file @
602352ce
...
@@ -19,7 +19,7 @@ import asyncio
...
@@ -19,7 +19,7 @@ import asyncio
import
uvloop
import
uvloop
from
protocol
import
Request
,
Response
from
protocol
import
Request
,
Response
from
dyn
e
mo.runtime
import
DistributedRuntime
,
dyn
e
mo_endpoint
,
dyn
e
mo_worker
from
dyn
a
mo.runtime
import
DistributedRuntime
,
dyn
a
mo_endpoint
,
dyn
a
mo_worker
uvloop
.
install
()
uvloop
.
install
()
...
@@ -29,19 +29,19 @@ class RequestHandler:
...
@@ -29,19 +29,19 @@ class RequestHandler:
Request handler for the generate endpoint
Request handler for the generate endpoint
"""
"""
@
dyn
e
mo_endpoint
(
Request
,
Response
)
@
dyn
a
mo_endpoint
(
Request
,
Response
)
async
def
generate
(
self
,
request
):
async
def
generate
(
self
,
request
):
for
char
in
request
.
data
:
for
char
in
request
.
data
:
yield
char
yield
char
@
dyn
e
mo_worker
()
@
dyn
a
mo_worker
()
async
def
worker
(
runtime
:
DistributedRuntime
):
async
def
worker
(
runtime
:
DistributedRuntime
):
"""
"""
Instantiate a `backend` component and serve the `generate` endpoint
Instantiate a `backend` component and serve the `generate` endpoint
A `Component` can serve multiple endpoints
A `Component` can serve multiple endpoints
"""
"""
component
=
runtime
.
namespace
(
"dyn
e
mo"
).
component
(
"backend"
)
component
=
runtime
.
namespace
(
"dyn
a
mo"
).
component
(
"backend"
)
await
component
.
create_service
()
await
component
.
create_service
()
endpoint
=
component
.
endpoint
(
"generate"
)
endpoint
=
component
.
endpoint
(
"generate"
)
...
...
lib/bindings/python/rust/engine.rs
View file @
602352ce
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
use
std
::
sync
::
Arc
;
use
std
::
sync
::
Arc
;
use
dyn
e
mo_llm
::
engines
::
python
::
PythonServerStreamingEngine
;
use
dyn
a
mo_llm
::
engines
::
python
::
PythonServerStreamingEngine
;
use
dyn
e
mo_runtime
::
CancellationToken
;
use
dyn
a
mo_runtime
::
CancellationToken
;
pub
use
dyn
e
mo_runtime
::{
pub
use
dyn
a
mo_runtime
::{
pipeline
::{
async_trait
,
AsyncEngine
,
Data
,
ManyOut
,
SingleIn
},
pipeline
::{
async_trait
,
AsyncEngine
,
Data
,
ManyOut
,
SingleIn
},
protocols
::
annotated
::
Annotated
,
protocols
::
annotated
::
Annotated
,
Error
,
Result
,
Error
,
Result
,
...
...
lib/bindings/python/rust/lib.rs
View file @
602352ce
...
@@ -25,14 +25,14 @@ use std::{fmt::Display, sync::Arc};
...
@@ -25,14 +25,14 @@ use std::{fmt::Display, sync::Arc};
use
tokio
::
sync
::
Mutex
;
use
tokio
::
sync
::
Mutex
;
use
tracing_subscriber
::
FmtSubscriber
;
use
tracing_subscriber
::
FmtSubscriber
;
use
dyn
e
mo_runtime
::{
use
dyn
a
mo_runtime
::{
self
as
rs
,
self
as
rs
,
pipeline
::{
EngineStream
,
ManyOut
,
SingleIn
},
pipeline
::{
EngineStream
,
ManyOut
,
SingleIn
},
protocols
::
annotated
::
Annotated
as
RsAnnotated
,
protocols
::
annotated
::
Annotated
as
RsAnnotated
,
traits
::
DistributedRuntimeProvider
,
traits
::
DistributedRuntimeProvider
,
};
};
use
dyn
e
mo_llm
::{
self
as
llm_rs
};
use
dyn
a
mo_llm
::{
self
as
llm_rs
};
mod
engine
;
mod
engine
;
mod
llm
;
mod
llm
;
...
...
lib/bindings/python/rust/llm/backend.rs
View file @
602352ce
...
@@ -19,7 +19,7 @@ use crate::llm::model_card::ModelDeploymentCard;
...
@@ -19,7 +19,7 @@ use crate::llm::model_card::ModelDeploymentCard;
use
llm_rs
::
protocols
::
common
::
llm_backend
::{
BackendInput
,
BackendOutput
};
use
llm_rs
::
protocols
::
common
::
llm_backend
::{
BackendInput
,
BackendOutput
};
use
llm_rs
::
types
::
Annotated
;
use
llm_rs
::
types
::
Annotated
;
use
dyn
e
mo_runtime
::
pipeline
::{
Operator
,
ServiceBackend
,
ServiceFrontend
,
Source
};
use
dyn
a
mo_runtime
::
pipeline
::{
Operator
,
ServiceBackend
,
ServiceFrontend
,
Source
};
use
crate
::
engine
::
PythonAsyncEngine
;
use
crate
::
engine
::
PythonAsyncEngine
;
...
...
lib/bindings/python/rust/llm/preprocessor.rs
View file @
602352ce
...
@@ -27,9 +27,9 @@ use llm_rs::{
...
@@ -27,9 +27,9 @@ use llm_rs::{
},
},
};
};
use
dyn
e
mo_runtime
::
pipeline
::{
Operator
,
ServiceFrontend
,
Source
};
use
dyn
a
mo_runtime
::
pipeline
::{
Operator
,
ServiceFrontend
,
Source
};
use
dyn
e
mo_runtime
::
pipeline
::{
ManyOut
,
SegmentSink
,
SingleIn
};
use
dyn
a
mo_runtime
::
pipeline
::{
ManyOut
,
SegmentSink
,
SingleIn
};
#[pyclass]
#[pyclass]
pub
(
crate
)
struct
OAIChatPreprocessor
{
pub
(
crate
)
struct
OAIChatPreprocessor
{
...
...
lib/bindings/python/src/dyn
e
mo/_core.pyi
→
lib/bindings/python/src/dyn
a
mo/_core.pyi
View file @
602352ce
File moved
lib/bindings/python/src/dyn
e
mo/llm/__init__.py
→
lib/bindings/python/src/dyn
a
mo/llm/__init__.py
View file @
602352ce
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
from
dyn
e
mo._core
import
KvIndexer
as
KvIndexer
from
dyn
a
mo._core
import
KvIndexer
as
KvIndexer
from
dyn
e
mo._core
import
KvMetricsAggregator
as
KvMetricsAggregator
from
dyn
a
mo._core
import
KvMetricsAggregator
as
KvMetricsAggregator
from
dyn
e
mo._core
import
KvMetricsPublisher
as
KvMetricsPublisher
from
dyn
a
mo._core
import
KvMetricsPublisher
as
KvMetricsPublisher
from
dyn
e
mo._core
import
KvRouter
as
KvRouter
from
dyn
a
mo._core
import
KvRouter
as
KvRouter
lib/bindings/python/src/dyn
e
mo/runtime/__init__.py
→
lib/bindings/python/src/dyn
a
mo/runtime/__init__.py
View file @
602352ce
...
@@ -22,15 +22,15 @@ from pydantic import BaseModel, ValidationError
...
@@ -22,15 +22,15 @@ from pydantic import BaseModel, ValidationError
# List all the classes in the _core module for re-export
# List all the classes in the _core module for re-export
# import * causes "unable to detect undefined names"
# import * causes "unable to detect undefined names"
from
dyn
e
mo._core
import
Backend
as
Backend
from
dyn
a
mo._core
import
Backend
as
Backend
from
dyn
e
mo._core
import
Client
as
Client
from
dyn
a
mo._core
import
Client
as
Client
from
dyn
e
mo._core
import
DistributedRuntime
as
DistributedRuntime
from
dyn
a
mo._core
import
DistributedRuntime
as
DistributedRuntime
from
dyn
e
mo._core
import
KvRouter
as
KvRouter
from
dyn
a
mo._core
import
KvRouter
as
KvRouter
from
dyn
e
mo._core
import
ModelDeploymentCard
as
ModelDeploymentCard
from
dyn
a
mo._core
import
ModelDeploymentCard
as
ModelDeploymentCard
from
dyn
e
mo._core
import
OAIChatPreprocessor
as
OAIChatPreprocessor
from
dyn
a
mo._core
import
OAIChatPreprocessor
as
OAIChatPreprocessor
def
dyn
e
mo_worker
():
def
dyn
a
mo_worker
():
def
decorator
(
func
):
def
decorator
(
func
):
@
wraps
(
func
)
@
wraps
(
func
)
async
def
wrapper
(
*
args
,
**
kwargs
):
async
def
wrapper
(
*
args
,
**
kwargs
):
...
@@ -59,7 +59,7 @@ def dynemo_worker():
...
@@ -59,7 +59,7 @@ def dynemo_worker():
return
decorator
return
decorator
def
dyn
e
mo_endpoint
(
def
dyn
a
mo_endpoint
(
request_model
:
Union
[
Type
[
BaseModel
],
Type
[
Any
]],
response_model
:
Type
[
BaseModel
]
request_model
:
Union
[
Type
[
BaseModel
],
Type
[
Any
]],
response_model
:
Type
[
BaseModel
]
)
->
Callable
:
)
->
Callable
:
def
decorator
(
def
decorator
(
...
...
Prev
1
…
14
15
16
17
18
19
20
21
22
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment