Giter Club home page Giter Club logo

Vectorly

Vectorly's Python library enables provides a Python wrapper for the Vectorly API, enabling you to:

  • Upload videos
  • List current videos
  • Search video
  • Download video
  • Get detail informaition about video
  • Retrieve analytics
  • Retrieve events

Installation

Use the package manager pip to install foobar.

pip install vectorly

Getting your API key

To use the library, you will need an API Key.

You can get your API key in the "Settings page", which you can view by clicking on the user icon in the top-right hand corner.

APIkey

Usage

import vectorly

API_KEY = '**********************'

def main():
    vectorly_obj = Vectorly(API_KEY)
    vectorly_obj.upload('video_file_pathname')

    search_list = vectorly_obj.search('file_name')
    for file in search_list:
        detail = vectorly_obj.video_detail(file['id'])
        print(detail)

if __name__ == '__main__':
    main()

Methods

The API lets you perform the following operations on your videos

upload

# create instance of Vectorly class
# default chank_size = 256000
vectorly_obj = Vectorly(API_KEI, chank_size)

# upload file 
vectorly.upload(filename)

API_KEI - your API key
chank_size - chank size, default 256000
filename - Uploaded file name

list

Listing videos in Vectorly. When videos have the status "ready", you can begin playing the video, or you can download it

video_list = vectorly_obj.list()

video_detail

Getting video details by video_id

video_detail = vectorly_obj.video_detail(video_id)

video_id - Video ID

search

Searching videos

search_list = vectorly_obj.search(search_term)

search_term - searching term

download

Download the compressed video to your system

vectorly_obj.download(video_id, destination)

video_id - Video ID
destination - Destination file

analytics

Overall summary of video playback over the last 30 days

vectorly_obj.analytics()

events

Retrieve all events from the last 90 days for a particular video

vectorly_obj.events(video_id)

video_id - Video ID, default None

License

MIT

Vectorly's Projects

android-demo icon android-demo

A working demo showing how you can incorporate Vectorly's Android SDK into your app

build-your-own-x icon build-your-own-x

Master programming by recreating your favorite technologies from scratch.

docs icon docs

API documentation for vectorly.io/docs

handyview icon handyview

Handy image viewer based on PyQt5. Convenient for viewing and comparing :-)

mschool-curriculum icon mschool-curriculum

2000+ Khan Academy style ultra data light video lessons for the West Africa WAEC curriculum

mschool-player icon mschool-player

A player for mschol vvid files (forked from dot Learn's old Vector video player)

node-client icon node-client

Node library for uploading, compressing and streaming videos using Vectorly's stream product

npm-load-demo icon npm-load-demo

Demo repository showing how to load Vectorly's plugins via NPM

python-client icon python-client

Python library for uploading, compressing and streaming videos using Vectorly's stream product

twilio-reference icon twilio-reference

These samples demonstrate Twilio Video SDK (https://github.com/twilio/twilio-video.js) usage.

uppy icon uppy

The next open source file uploader for web browsers :dog:

vectorly-java-client icon vectorly-java-client

Java library for uploading, compressing and streaming videos using Vectorly's stream product

vmaf icon vmaf

Perceptual video quality assessment based on multi-method fusion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.