BaudLabs Python SDK
Python client for the BaudLabs image and video search API.
Install
pip install baudlabs
Quick start
import baudlabs
client = baudlabs.Client("bl_your_api_key")
Video Search
client.create_index("my_videos")
client.add_videos(
index_id="my_videos",
files=["video1.mp4", "video2.mp4"],
)
results = client.search(
index_id="my_videos",
query="person walking a dog",
media_type="video",
)
for match in results.matches:
print(match.video_id, match.start_time, match.end_time, match.score)
Image Search
client.create_index("my_images")
client.add_images(
index_id="my_images",
files=["img1.jpg", "img2.jpg"],
)
results = client.search(
index_id="my_images",
query="sunset over ocean",
media_type="image",
)
for match in results.matches:
print(match.image_id, match.score)
Mixed Image and Video Search
client.create_index("my_media")
client.add_images(
index_id="my_media",
files=["img1.jpg", "img2.jpg"],
)
client.add_videos(
index_id="my_media",
files=["video1.mp4", "video2.mp4"],
)
results = client.search(
index_id="my_media",
query="a red car driving on a city street",
media_type="mixed",
)
for match in results.matches:
if match.image_id:
print("image", match.image_id, match.image_url, match.score)
if match.video_id:
print("video", match.video_id, match.start_time, match.end_time, match.video_url, match.score)
Metadata
Release files for baudlabs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| baudlabs-0.1.0.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baudlabs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / baudlabs-0.1.0.tar.gz
| Download URL | baudlabs-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fd6e48f055ae86cb4fe12c61e5258c40fbcde21d4ffb2a884b69b853c467eba
|
|
BLAKE2b-256 checksum How to use checksums |
b6f98e138aa12ed6726f8eec546449a1d61334737e3d96f26de92a3b1bacd43f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / baudlabs-0.1.0-py3-none-any.whl
| Download URL | baudlabs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77457f73d6a340488b5be8385447c903c3087b2bdff190af7954f67f9ec20fe8
|
|
BLAKE2b-256 checksum How to use checksums |
68acdd430d50b08a79058c5f63fb955e23afab069394f35eb841014206e24a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for baudlabs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.