Skip to main content

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

  1. Install dependencies for development:
    pip install -r requirements.txt -r requirements-dev.txt
    
  2. Run tests with pytest.

License

This SDK is licensed under the Apache License 2.0. See the LICENSE file for details.

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

vidnavigator-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vidnavigator-0.1.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file vidnavigator-0.1.0.tar.gz.

File metadata

  • Download URL: vidnavigator-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for vidnavigator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43f1203290acfee4e89c6d4288f140bfd2dbbda61579b0b3ce7aa76249c01503
MD5 124549af01ec05d1144afa500731d5aa
BLAKE2b-256 3a255abe1b5732d7d6b90ebc899ff7a922c7b8c5808b8076ac2d30151473fb18

See more details on using hashes here.

File details

Details for the file vidnavigator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vidnavigator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for vidnavigator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c00fe7d667424b30230579c20198d3549b223de1471cdde87f2ae9ac32d2655
MD5 6d444a7d2ada06b968051085ae0f9b8c
BLAKE2b-256 572196cd3973b630e0435b722bcc8b4d07caba8d445600140724da653e96ac23

See more details on using hashes here.

Supported by

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