ViQuBox SDK - Create and send processing requests to the ViQuBox system.
Project description
ViQuBox-SDK
SDK for interacting with the Data Processing API.
Setup
Requirements:
- Python 3.8+
- API token generated from the ViQuBox front-end or given by the ViQuBox team.
Using pip
python -m venv venv
. venv/bin/activate
pip install viqubox-sdk
Usage
To create a processing request and get the jobs, use the following code:
from viqubox_sdk.client import Authentication, ViquboxClient
from viqubox_sdk.models import (
AuthenticationOptions,
AuthenticationType,
InputFileConfig,
MetricConfig,
OutputConfig,
ProcessingRequest,
)
input_files = InputFileConfig(
authentication=AuthenticationOptions(
opts={"username": "admin", "password": "123"},
type=AuthenticationType.PASSWORD,
),
connection_protocol="smb",
paths=["smb://some/path/test_video_1.mp4"],
)
output = OutputConfig(db=True, files=False)
brisque_metric = MetricConfig()
brisque_metric.add_option("video", "@test_video")
brisque_metric.add_option("model", "portrait")
brisque_metric.add_option("marker_num", "9000")
brisque_metric.add_option("scale", "400")
brisque_metric.add_option("roi", "1.2:0:1:1")
request = ProcessingRequest(test_id="t1", output=output)
request.add_files("test_video", input_files)
request.add_metric("brisque", brisque_metric)
client = ViquboxClient(Authentication(api_key="{REDACTED}"))
req = client.processing_create(request)
jobs = client.processing_get_jobs(req.id)
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
viqubox_sdk-0.4.6.tar.gz
(8.0 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 viqubox_sdk-0.4.6.tar.gz.
File metadata
- Download URL: viqubox_sdk-0.4.6.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d68237c05623a59b46d31fb3c6b914dff04c60be03041d755671a8aed411f3
|
|
| MD5 |
e324082d37470587d557ac64e0b53423
|
|
| BLAKE2b-256 |
6acd75b20a6e5e63f4ea5d840ab2e0f727cd16efda9361620efe38e1d0f57156
|
File details
Details for the file viqubox_sdk-0.4.6-py3-none-any.whl.
File metadata
- Download URL: viqubox_sdk-0.4.6-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f8e9854242c7527b2b7e6462f07cb9c6a745310d1a9751a63d5923bb09a7000
|
|
| MD5 |
72a300715796dafa95cd0ede1b5e2afb
|
|
| BLAKE2b-256 |
84f38255494edd64b4a242af54d456e0c134726cf4a8af1d69f5c89e0622d326
|