videoguys-python-client
Official API
- API version: 0.1
- Package version: 0.1.0
Requirements.
Python 3.5+
Setuptools
Install via Setuptools (for local testing).
pip install --user --upgrade pip
pip install --user --upgrade setuptools
sudo python setup.py install --user --prefix=
Or
Install via Pip (easiest method).
sudo python -m pip install videoguys
Then import the package:
import videoguys
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import sys
import videoguys
from pprint import pprint
api_client = videoguys.ApiClient(
api_token="<api_key>", api_host="[vevio|vidup]"
)
try:
pair_response = api_client.getVideoPair("<video_code>")
pprint(pair_response)
video_info = api_client.getVideoInfo("<video_code>")
pprint(video_info)
filepath = "absolute_path_to_file"
video_upload = api_client.uploadVideo(
filepath=filepath, # required filepath for the new video upload
# size=size, # optional in this function, filepath will auto determine the size
title=title, # optional title for the new video
description=description, # optional description for the new video
folder_id=folder_id, # optional folder_id for the new video
lite=lite, # optional lite setting for the new video [0 or 1]
public=public, # optional public setting for the new video [0 or 1]
)
pprint(video_upload)
video_uploads = api_client.getVideoUploads()
pprint(video_uploads)
video_upload = api_client.updateVideoUpload(
<upload_code>,
title=title, # optional new title for the new video
description=description, # optional new description for the new video
folder_id=folder_id, # optional new folder_id for the new video
lite=lite, # optional new lite setting for the new video [0 or 1]
public=public, # optional new public setting for the new video [0 or 1]
)
pprint(video_upload)
video_upload = api_client.getVideoUpload(<upload_code>)
pprint(video_upload)
deleted_video_upload = api_client.deleteVideoUpload(<upload_code>)
pprint(deleted_video_upload)
url = "http/https file url"
url_upload = api_client.newUrlUpload(
url=url, # required url for the new url upload
title=title, # optional title for the new url
description=description, # optional description for the new url
folder_id=folder_id, # optional folder_id for the new url
lite=lite, # optional lite setting for the new url [0 or 1]
public=public, # optional public setting for the new url [0 or 1]
)
pprint(url_upload)
url_uploads = api_client.getUrlUploads()
pprint(url_uploads)
url_upload = api_client.updateUrlUpload(
<upload_code>,
title=title, # optional new title for the new url
description=description, # optional new description for the new url
folder_id=folder_id, # optional new folder_id for the new url
lite=lite, # optional new lite setting for the new url [0 or 1]
public=public, # optional new public setting for the new url [0 or 1]
)
pprint(url_upload)
url_upload = api_client.getUrlUpload(<upload_code>)
pprint(url_upload)
url_upload_status = api_client.getUrlUploadStatus(<upload_code>)
pprint(url_upload_status)
# if the url upload has been downloaded then you should clear it
# to avoid concurrent hitting limits
if (url_upload_status and
'status' in url_upload_status and
url_upload_status['status'] == "downloaded"):
deleted_url_upload = api_client.deleteUrlUpload(<upload_code>)
pprint(deleted_url_upload)
except ValueError as e:
print("%s" % e)
except videoguys.ErrorWithResponse as e:
print("%s" % e.response.body['message'])
except:
print("Unexpected error:", sys.exc_info()[0])
Documentation For Authorization
All endpoints except getVideoInfo("<video_code>") and getVideoPair("<video_code>") requires authorization.
Author
VideoGuys
Metadata
Release files for videoguys 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| videoguys-0.0.4.tar.gz | 4.7 kB | Without provenance | Details for videoguys-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| videoguys-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for videoguys-0.0.4-py3-none-any.whl |
Total release size: 11.5 kB
Release files / videoguys-0.0.4.tar.gz
| Download URL | videoguys-0.0.4.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
454c23f495d039ad4f0466af20c1a83e8d5f7c49e64bdbc725227ea2e36c6485
|
|
BLAKE2b-256 checksum How to use checksums |
0a4344032970cc4d7dbb59b25b031cfeef8b39889b1113383a5824041c93feaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
|
Release files / videoguys-0.0.4-py3-none-any.whl
| Download URL | videoguys-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec7a1f2710266c965041de28975d28871ed24b6af8963d135cddaeb0084e99a2
|
|
BLAKE2b-256 checksum How to use checksums |
85096169c9516f2bcebdc208a143b6e14d8c99e60dfdba958c43a498b67b5ba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
|
Security for videoguys 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.