Python SDK for the VidNavigator Developer API
Project description
vidnavigator-python
Python SDK for the VidNavigator Developer API
Installation
pip install git+https://github.com/DeepSearchVideo/vidnavigator-python.git # or publish on PyPI
Quickstart
from vidnavigator import VidNavigatorClient
client = VidNavigatorClient(api_key="YOUR_API_KEY")
# Health check
print(client.health_check())
# Fetch transcript from YouTube
transcript = client.get_transcript(
video_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
language="en",
)
print(transcript)
# AI analysis
analysis = client.analyze_video(
video_url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
query="What is the main topic discussed?",
)
print(analysis)
# Remember to close the client (or use `with` statement)
client.close()
Using a Context Manager
from vidnavigator import VidNavigatorClient
with VidNavigatorClient(api_key="YOUR_API_KEY") as client:
results = client.search_videos(query="best practices for React development")
print(results)
Development
- Install dependencies for development:
pip install -r requirements.txt -r requirements-dev.txt
- Run tests with
pytest.
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.0.tar.gz
(15.7 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