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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af89b20792de701a8d75ad50e017fd7155f349f400353fb40542bd18412c9e74
|
|
| MD5 |
5182e9e2a6e588ebb27cdc4ada0012c7
|
|
| BLAKE2b-256 |
242a2798a2725e94794aed09e92310858d78d461f96aac460b1bb57a964e3772
|
Provenance
The following attestation bundles were made for machgen_client-0.1.0.tar.gz:
Publisher:
publish.yml on MachGen/machgen-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
machgen_client-0.1.0.tar.gz -
Subject digest:
af89b20792de701a8d75ad50e017fd7155f349f400353fb40542bd18412c9e74 - Sigstore transparency entry: 2165084141
- Sigstore integration time:
-
Permalink:
MachGen/machgen-client@442443822ae8f271940510683c9d60d5f6f8ef6e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/MachGen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@442443822ae8f271940510683c9d60d5f6f8ef6e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
261f7aab2b794415820ec94502bcb51051962da4ab678d46ac55762c0e94d37f
|
|
| MD5 |
9376cae9ad61291d45981cf4db73621e
|
|
| BLAKE2b-256 |
82139c864922dc64d4aba455bd9228498111038b0bf3915a3fb63661fb226c2a
|
Provenance
The following attestation bundles were made for machgen_client-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on MachGen/machgen-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
machgen_client-0.1.0-py3-none-any.whl -
Subject digest:
261f7aab2b794415820ec94502bcb51051962da4ab678d46ac55762c0e94d37f - Sigstore transparency entry: 2165084147
- Sigstore integration time:
-
Permalink:
MachGen/machgen-client@442443822ae8f271940510683c9d60d5f6f8ef6e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/MachGen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@442443822ae8f271940510683c9d60d5f6f8ef6e -
Trigger Event:
release
-
Statement type: