mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 07:05:36 +01:00
11 lines
277 B
Python
11 lines
277 B
Python
from temporalio.client import Client
|
|
from temporalio.contrib.pydantic import pydantic_data_converter
|
|
|
|
|
|
async def get_client() -> Client:
|
|
return await Client.connect(
|
|
"temporal:7233",
|
|
namespace="default",
|
|
data_converter=pydantic_data_converter
|
|
)
|