Skip to main content

The official Python library for the Vizlook API

Project description

Vizlook

The official Vizlook Python SDK.

Install

pip install vizlook

Usage

from vizlook import Vizlook, AsyncVizlook

vizlook = Vizlook(api_key=os.environ.get("VIZLOOK_API_KEY"))

Performs a video search on the Vizlook system.

response = vizlook.search(
    "how to be productive",
    max_results=5,
    start_published_date="2025-08-19T15:01:36.000Z",
    contain_spoken_text="a lot of people don't do a lot of things",
    contain_screen_text="I struggle a lot with like",
    include_transcription=True,
    include_summary=True,
)

print("response with original API field name: ", response.to_dict())
print("response with snake case field name: ", response.to_dict(use_api_field_name=False))
print("get field value with snake case key from pydantic model: ", response.results)

Generates an answer to a query.

response = vizlook.answer("how to be productive", include_transcription=True)

Streams an answer to a query.

stream = vizlook.stream_answer("how to be productive")
answer = ""

for chunk in stream:
    # response with original API key
    chunk_dict = chunk.to_dict()
    chunk_type = chunk_dict.get("type")

    if chunk_type == "answer-chunk":
        answer += chunk_dict.get("data", "")
    if chunk_type == "data-citations":
        print("Citations: ", chunk_dict.get("data").get("citations"))
    if chunk_type == "data-cost":
        print("Cost: ", chunk_dict.get("data").get("dollarCost"))
    if chunk_type == "error":
        print("Error: ", chunk_dict.get("data").get("errorText"))

print("Answer: ", answer)

Retrieves contents of videos based on specified URLs.

response = vizlook.get_video_contents(
    "https://www.youtube.com/watch?v=QdBokRd2ahw",
    crawl_mode="Always",
    include_transcription=True,
    include_summary=True,
)

Documentation

https://docs.vizlook.com

API

https://docs.vizlook.com/documentation/api-reference/search

Contributing

Feel free to submit pull requests. For larger-scale changes, though, it's best to open an issue first so we can deliberate on your plans.

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

vizlook-0.1.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

vizlook-0.1.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file vizlook-0.1.1.tar.gz.

File metadata

  • Download URL: vizlook-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.6 Darwin/23.3.0

File hashes

Hashes for vizlook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f872dc9bf88ea177cd60c92f317c17dfe0fb08eaf68d71faa2ee040a37be7069
MD5 9c78984dba5f8520e9aa1ac141d1e0a1
BLAKE2b-256 7d6e2c16b33e20d078c022a9da2823bde32b8f81120ab2169e085cbe9c27d51a

See more details on using hashes here.

File details

Details for the file vizlook-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vizlook-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.6 Darwin/23.3.0

File hashes

Hashes for vizlook-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 171cc1d981a72227def05071d8ae829109ad0dbe12ee7813766646140f844712
MD5 85cd1f55039f5b0fc342fb83d92fdec4
BLAKE2b-256 cf73261276d2b63e2666e01bacc543846963e8ed48258c26cf36f44958f49d60

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