No project description provided
Project description
PingPong Python SDK
Example
import os
from pingpongsdk import PingPong
from pingpongsdk.deployments.model import CreateDeployment
if __name__ == '__main__':
pingpong = PingPong(api_key='<your-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.3.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.3.tar.gz.
File metadata
- Download URL: pingpongsdk-0.1.3.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 |
b0da53a09432155a890f5dd5d6cd49b1f0f9a015d4863adfedf3aee40248626b
|
|
| MD5 |
baeb5002649331c0291c520bbb0e73c0
|
|
| BLAKE2b-256 |
d5b536b8155ebbc4afce427b0659ef2188fd3ccb72ffd2ce759e06a19b534644
|
File details
Details for the file pingpongsdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pingpongsdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.8 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 |
8657202714347ee5983e9dc92d1993aebe63e0bff92e8f671e7815e031106520
|
|
| MD5 |
4272ead5aa1301296ea72e6a3de421fa
|
|
| BLAKE2b-256 |
72aeea260c1ebc325c02ab6f5b74e721771532aa2ac1c017d7f3b17a10bc1253
|