Official Python SDK for the GridBank API
Project description
Python SDK Documentation
Welcome to the GridBank Python SDK documentation. This guide will help you integrate GridBank's video search and download API into your Python application.
Getting Started
- Installation — Install the SDK with pip
- Client Setup — Initialize your first client
- Quick Example — See a working example
Learn by Doing
- Code Examples — Real-world usage patterns and workflows
- Method Reference — Complete API method documentation
Reference
- API Reference — Full REST API specification
- Error Handling — Learn error codes and how to handle them
- Rate Limiting — Understand rate limit behavior
Key Concepts
Authentication
All requests require a Bearer token API key.
from gridbank_api import GridbankClient
client = GridbankClient(api_key="apik_your_key_here")
Core Methods
The SDK provides 4 core methods:
search_videos()— Search the video library with full-text searchget_video()— Fetch detailed metadata for a videodownload_video()— Generate signed download URLsusage_summary()— Check your subscription tier and quota
Error Handling
All methods raise GridbankAPIError on failures:
from gridbank_api import GridbankAPIError
try:
results = client.search_videos(q="nature")
except GridbankAPIError as e:
print(f"Error: {e.code} - {e.message}")
Common Tasks
Search for videos:
results = client.search_videos(q="skincare", per_page=10)
Get video details:
video = client.get_video(video_id="video_abc123")
print(f"{video.title} by {video.creator.name}")
Download a video:
download = client.download_video(video_id="video_abc123")
print(f"Download URL: {download.url}")
Check your usage:
usage = client.usage_summary()
print(f"Tier: {usage.tier}")
print(f"Downloads used: {usage.downloads_this_period}")
Troubleshooting
Installation issues? See Installation Troubleshooting
Error with API key? See Error Codes
Rate limited? See Rate Limiting
Need Help?
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
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
File details
Details for the file gridbank_api-0.2.0.tar.gz.
File metadata
- Download URL: gridbank_api-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb659eb76991401098e1c10491eb695af9755a5e77f6b0e0cc68dc1259474f0b
|
|
| MD5 |
a7cd82f22c658c332d88e440784567ef
|
|
| BLAKE2b-256 |
32b653e0308c4cb688e9c5ff426bcd1c7f82731eee06e38e3e0fc3e1215a8066
|
Provenance
The following attestation bundles were made for gridbank_api-0.2.0.tar.gz:
Publisher:
publish-python-sdk.yml on GridBank/gridbank-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gridbank_api-0.2.0.tar.gz -
Subject digest:
bb659eb76991401098e1c10491eb695af9755a5e77f6b0e0cc68dc1259474f0b - Sigstore transparency entry: 1757444662
- Sigstore integration time:
-
Permalink:
GridBank/gridbank-sdk@781f8460569e1acc864c3c49e7f48a61d51646e4 -
Branch / Tag:
refs/tags/python-v0.2.0 - Owner: https://github.com/GridBank
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@781f8460569e1acc864c3c49e7f48a61d51646e4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gridbank_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gridbank_api-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cdb92cee5bca7aa6b68ad7f60c9500933a6db02dcddabfa233a0d77b30255c6
|
|
| MD5 |
bf293217682a6a0ed77373eb4df7c451
|
|
| BLAKE2b-256 |
5404ebb5e07155c06e97f33bf3d80c3ae44572dcacc763554a0a21ee78609baf
|
Provenance
The following attestation bundles were made for gridbank_api-0.2.0-py3-none-any.whl:
Publisher:
publish-python-sdk.yml on GridBank/gridbank-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gridbank_api-0.2.0-py3-none-any.whl -
Subject digest:
9cdb92cee5bca7aa6b68ad7f60c9500933a6db02dcddabfa233a0d77b30255c6 - Sigstore transparency entry: 1757446742
- Sigstore integration time:
-
Permalink:
GridBank/gridbank-sdk@781f8460569e1acc864c3c49e7f48a61d51646e4 -
Branch / Tag:
refs/tags/python-v0.2.0 - Owner: https://github.com/GridBank
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@781f8460569e1acc864c3c49e7f48a61d51646e4 -
Trigger Event:
push
-
Statement type: