Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

endeavour_services_client-0.1.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page