Skip to main content

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

  1. Installation — Install the SDK with pip
  2. Client Setup — Initialize your first client
  3. Quick Example — See a working example

Learn by Doing

Reference

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 search
  • get_video() — Fetch detailed metadata for a video
  • download_video() — Generate signed download URLs
  • usage_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gridbank_api-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

gridbank_api-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for gridbank_api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb659eb76991401098e1c10491eb695af9755a5e77f6b0e0cc68dc1259474f0b
MD5 a7cd82f22c658c332d88e440784567ef
BLAKE2b-256 32b653e0308c4cb688e9c5ff426bcd1c7f82731eee06e38e3e0fc3e1215a8066

See more details on using hashes here.

Provenance

The following attestation bundles were made for gridbank_api-0.2.0.tar.gz:

Publisher: publish-python-sdk.yml on GridBank/gridbank-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for gridbank_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cdb92cee5bca7aa6b68ad7f60c9500933a6db02dcddabfa233a0d77b30255c6
MD5 bf293217682a6a0ed77373eb4df7c451
BLAKE2b-256 5404ebb5e07155c06e97f33bf3d80c3ae44572dcacc763554a0a21ee78609baf

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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