Skip to main content

AskVideos python library

Project description

AskVideosClient

AskVideosClient is a Python client for interacting with the AskVideos API. This client allows you to create indices, search for videos, synthesize answers from multiple videos, index videos from various sources (YouTube search, URL, playlist, channel), and more.

Installation

To install the python client.

pip install askvideos

Usage

Set-up client

from ask_videos_client import AskVideosClient

api_url = os.environ.get("ASKVIDEOS_SERVER_URL")
api_key = os.environ.get("ASKVIDEOS_API_KEY")
client = AskVideosClient(api_url, api_key)

Create an index

index_name = "coffee"
client.create_index(index_name)

Text search

query = "coldbrew"
results = client.search_videos(index_name, query)
print(results)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

askvideos-0.1.6.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

askvideos-0.1.6-py3-none-any.whl (5.3 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