Skip to main content

External client for the MachGen platform - submit tasks via the public API.

Project description

machgen-client

External Python client for the MachGen platform.

Installation

pip install machgen-client

Requires Python 3.11 or newer.

To install the latest source snapshot for development:

pip install "git+https://github.com/MachGen/machgen-client.git"

Quick Start

Check the docs on how authentication works and get an API key from there.

Populate the API key either in env var MACHGEN_API_KEY or set it when creating the client MachGenClient(api_key="...").

from machgen.client import MachGenClient, TaskInput, TaskOutputType, VideoConfig

with MachGenClient() as client:
    handle = client.submit_task(
        TaskInput(
            prompt="...",
            model="Wan2.2-T2V-A14B",
            task_type="T2V",
            video_config=VideoConfig(duration_secs=5, height=720, width=1280, fps=16),
        )
    )
    result = client.wait(handle)
    print(result.task_output[TaskOutputType.VIDEO])

Documentation

Full docs are published at https://www.machgen.ai/docs.

Runnable scripts for each task type live in the examples directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

machgen_client-0.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

machgen_client-0.1.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file machgen_client-0.1.0.tar.gz.

File metadata

  • Download URL: machgen_client-0.1.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for machgen_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 af89b20792de701a8d75ad50e017fd7155f349f400353fb40542bd18412c9e74
MD5 5182e9e2a6e588ebb27cdc4ada0012c7
BLAKE2b-256 242a2798a2725e94794aed09e92310858d78d461f96aac460b1bb57a964e3772

See more details on using hashes here.

Provenance

The following attestation bundles were made for machgen_client-0.1.0.tar.gz:

Publisher: publish.yml on MachGen/machgen-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file machgen_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: machgen_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for machgen_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 261f7aab2b794415820ec94502bcb51051962da4ab678d46ac55762c0e94d37f
MD5 9376cae9ad61291d45981cf4db73621e
BLAKE2b-256 82139c864922dc64d4aba455bd9228498111038b0bf3915a3fb63661fb226c2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for machgen_client-0.1.0-py3-none-any.whl:

Publisher: publish.yml on MachGen/machgen-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page