Python WebServices Client for Endeavour WebServices
Project description
Overview
This ia a Python client for the EndeavourWebServices, enabling users to consume the services without having to explicitly resort to invoking the webservices. In order for the client to work, you need to ensure that the Endeavour Video Services are running in an environment that you can access, either locally or deployed on a remote network.
How To Use
At present there are 4 client methods that have been built. These are
- Video Length - Determines the length of a video
- Video to gif - Extracts images from the video to create both an animated gif and extract key frames
- YouTubeDownload - Enables a user to download a video from youtube onto a fileshare used by the webservices
- VideSummary - Uses ML and NLP to identify key areas within a video, which once identified, enables the creation of a summary video
Video Length
This method enables users to determin the length of a video that is stored on the webservices server
from client.client_video_length import ClientVideoLength
from client.models.video_length_request import VideoLengthRequest
def runTests():
endPointVideoLengthServiceURL = "http://192.168.0.52:8061/video_length/"
vlRequest = VideoLengthRequest(user_id="Betty",
file_name="z.mp4",
input_path="../data/sourcing")
vl = ClientVideoLength(endPointVideoLengthServiceURL)
vlr = vl.getVideoLength(vlRequest)
print(str(vlr.record_duration))
if __name__ == '__main__':
runTests()
- endPointVideoLengthServiceURL - URL to Video Length Service
- input_path = directory on the webservice machine containing the temporary video files
- file_name = the name of the mp4 file that can be found at the doc root
How to package source for pypi
- delete build and dist directories
- python setup.py bdist_wheel
- python -m twine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 endeavour_services_client-0.1.3-py3-none-any.whl.
File metadata
- Download URL: endeavour_services_client-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd4a8fe75f0cf7a00bd0957e4d4034c5ec0a54751fe34c82fd454b95ab3f242
|
|
| MD5 |
c55f83bde277bc6dd58db39785e50be3
|
|
| BLAKE2b-256 |
1ae6ced7a65734dd1d32481dccc587857d6ed631a128d19f9408258f76c58ea6
|