No project description provided
Project description
PingPong Python SDK
Example
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from src.deployments.model import CreateDeployment
from src import PingPong
_API_KEY = os.getenv("X_MEDIAMAGIC_KEY")
if __name__ == '__main__':
pingpong = PingPong(_API_KEY)
model = pingpong.models.get_by_id(id='4954c9fd-7fc2-4d4c-a036-f23f7605fa69')
try:
deployment = pingpong.deployments.create(deployment=CreateDeployment(
name="example-deployment",
model_id=model.id,
args={
'input_image_file': 'https://cdn.mediamagic.dev/media/eb341446-be53-11ed-b4a8-66139910f724.jpg',
}
))
print(model.name)
print(deployment.job.results)
except Exception as e:
print(e)
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
pingpongsdk-0.1.0.tar.gz
(10.2 kB
view details)
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 pingpongsdk-0.1.0.tar.gz.
File metadata
- Download URL: pingpongsdk-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c28c52429cb17f9d0c5c5df5694f409acb17ca204ecb010298e2d8fc2acef9bd
|
|
| MD5 |
82e08dc2460299c1940894c0aa0f2071
|
|
| BLAKE2b-256 |
09a47d2b764cb55daa03ceed0b05979148a1152a333691355971182246c4f657
|
File details
Details for the file pingpongsdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pingpongsdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daca78c46c464ebeb82d71f7634eca7f9d0b3892380d61ccdb8aa050792391ee
|
|
| MD5 |
61df8348819d7ac21db9ff35a97cbc64
|
|
| BLAKE2b-256 |
99f3bb270267466044eda76bfff736161058f1ececc61dc2f59e4bae0871e5fc
|