INNER CODE UNIT · Python

to_dict

renezander030/capcut-cli · python/capcut/__init__.py:247

    def to_dict(self) -> dict:
        job: dict = {"cmd": self.cmd}
        if self.project is not None:
            job["project"] = self.project
        if self.args:
            job["args"] = [str(a) for a in self.args]
        if self.id is not None:
            job["id"] = self.id
        if self.retries is not None:
            job["retries"] = self.retries
        if self.timeout is not None:
            job["timeout"] = self.timeout
        return job


def serve(
    jobs: Iterable[Union[Job, Mapping[str, Any]]],
    *,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…