Python SDK for the VidNavigator Developer API
Project description
vidnavigator-python
Python SDK for the VidNavigator Developer API
Installation
pip install vidnavigator
Quickstart
from vidnavigator import VidNavigatorClient
client = VidNavigatorClient(api_key="YOUR_API_KEY")
# Health check
print(client.health_check())
# Fetch transcript from YouTube
resp = client.get_transcript(
video_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"
)
# Get data as dictionary
data = resp.data.model_dump() # We use pydantic for object formatting
print(data['video_info']) # Get video metadata
print(data['transcript']) # Get video transcript
# AI analysis
resp = client.analyze_video(
video_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
query="What is the main topic discussed?",
)
analysis = resp.data.transcript_analysis
print(analysis.summary)
print(analysis.query_answer)
Using a Context Manager
from vidnavigator import VidNavigatorClient
with VidNavigatorClient(api_key="YOUR_API_KEY") as vn:
results = vn.analyze_video(
video_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
query="What is the main topic discussed?")
print(results)
More Examples & Documentation
For a comprehensive set of usage examples covering more SDK features, please see the test.py
For full API documentation, visit docs.vidnavigator.com.
License
This SDK is licensed under the Apache License 2.0. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vidnavigator-0.1.4.tar.gz
(16.2 kB
view details)
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