mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
- Run comfyui workflows directly inside other python applications using EmbeddedComfyClient. - Optional telemetry in prompts and models using anonymity preserving Plausible self-hosted or hosted. - Better OpenAPI schema - Basic support for distributed ComfyUI backends. Limitations: no progress reporting, no easy way to start your own distributed backend, requires RabbitMQ as a message broker.
38 lines
787 B
Python
38 lines
787 B
Python
from abc import ABC, abstractmethod
|
|
import asyncio
|
|
from typing import Optional, Dict, Any, Union
|
|
|
|
|
|
class EventTracker(ABC):
|
|
def __init__(self) -> None:
|
|
pass
|
|
|
|
@property
|
|
@abstractmethod
|
|
def user_agent(self) -> str:
|
|
pass
|
|
|
|
@user_agent.setter
|
|
@abstractmethod
|
|
def user_agent(self, value: str) -> None:
|
|
pass
|
|
|
|
@property
|
|
@abstractmethod
|
|
def domain(self) -> str:
|
|
pass
|
|
|
|
@domain.setter
|
|
@abstractmethod
|
|
def domain(self, value: str) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def track_event(self, name: str, url: str, referrer: Optional[str] = None,
|
|
props: Optional[Dict[str, Any]] = None) -> str:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def close(self) -> None:
|
|
pass
|